Пример #1
0
 public async Task AddEmployee(Employee employee, IErrorActionResultPresenter <string> presenter)
 {
     await _employeeGateway.CreateEmployee(employee);
 }
Пример #2
0
 public UpdateEmployeeController(IUpdateEmployeeUseCase updateEmployeeUseCase, IErrorActionResultPresenter <string> presenter)
 {
     _updateEmployeeUseCase = updateEmployeeUseCase;
     _presenter             = presenter;
 }
Пример #3
0
 public DeleteEmployeeController(IDeleteEmployeeUseCase deleteEmployeeUseCase,
                                 IErrorActionResultPresenter <string> presenter)
 {
     _deleteEmployeeUseCase = deleteEmployeeUseCase;
     _presenter             = presenter;
 }
 public async Task DeleteEmployee(Guid employeeId, IErrorActionResultPresenter <string> presenter)
 {
     await _employeeGateway.DeleteEmployee(employeeId);
 }
Пример #5
0
 public AddEmployeeController(IAddEmployeeUseCase addEmeployeeUseCase,
                              IErrorActionResultPresenter <string> presenter)
 {
     _addEmeployeeUseCase = addEmeployeeUseCase;
     _presenter           = presenter;
 }