forked from eatvio/eatvio_app
17 lines
444 B
Dart
17 lines
444 B
Dart
import 'package:eatvio_app/features/profile/models/profile_model.dart';
|
|
import 'package:eatvio_app/features/profile/services/profile_service.dart';
|
|
|
|
class ProfileRepository {
|
|
final ProfileService profileService;
|
|
|
|
ProfileRepository({required this.profileService});
|
|
|
|
Future<Profile> getProfileBySlug(String slug) async {
|
|
try {
|
|
return await profileService.getProfileBySlug(slug: slug);
|
|
} catch (e) {
|
|
rethrow;
|
|
}
|
|
}
|
|
}
|