attendence records, extra hours , rewards and punishment funnctionality have been added
This commit is contained in:
12
lib/domain/usecases/get_punishments_usecase.dart
Normal file
12
lib/domain/usecases/get_punishments_usecase.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import '../models/extra_payment_model.dart';
|
||||
import '../repositories/attendance_repository.dart';
|
||||
|
||||
class GetPunishmentsUseCase {
|
||||
final AttendanceRepository repository;
|
||||
|
||||
GetPunishmentsUseCase({required this.repository});
|
||||
|
||||
Future<List<ExtraPaymentModel>> execute({required String employeeId}) async {
|
||||
return await repository.getPunishments(employeeId: employeeId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user