forked from eatvio/eatvio_app
17 lines
435 B
Dart
17 lines
435 B
Dart
import 'package:eatvio_app/features/calendar/models/calendar_model.dart';
|
|
import 'package:eatvio_app/features/calendar/services/calendar_service.dart';
|
|
|
|
class CalendarRepository {
|
|
final CalendarService calendarService;
|
|
|
|
CalendarRepository({required this.calendarService});
|
|
|
|
Future<List<CalendarModel>> getCalendar() async {
|
|
try {
|
|
return await calendarService.getCalendar();
|
|
} catch (e) {
|
|
rethrow;
|
|
}
|
|
}
|
|
}
|