Ejemplo n.º 1
0
 public EmployeeController(
     IGetEmployeeQuery getEmployeeCommand,
     IGetEmployeeListQuery getEmployeeListCommand,
     ISaveEmployeeCommand saveEmployeeCommand,
     IDeleteEmployeeCommand deleteEmployeeCommand)
 {
     _getEmployeeQuery      = getEmployeeCommand;
     _getEmployeeListQuery  = getEmployeeListCommand;
     _saveEmployeeCommand   = saveEmployeeCommand;
     _deleteEmployeeCommand = deleteEmployeeCommand;
 }
Ejemplo n.º 2
0
 public EmployeeController(ICreateEmployeeCommand createEmployeeCommand, IUpdateEmployeeCommand updateEmployeeCommand,
                           IDeleteEmployeeCommand deleteEmployeeCommand, IGetAllEmployeeQuery getAllEmployeeQuery, IGetEmployeeQuery getEmployeeQuery,
                           ILogger logger)
 {
     _createEmployeeCommand = createEmployeeCommand;
     _updateEmployeeCommand = updateEmployeeCommand;
     _deleteEmployeeCommand = deleteEmployeeCommand;
     _getAllEmployeeQuery   = getAllEmployeeQuery;
     _getEmployeeQuery      = getEmployeeQuery;
     _logger = logger;
 }
Ejemplo n.º 3
0
 public EmployeesController(IGetEmployeesQuery getEmployeesQuery,
                            ICreateEmployeeCommand createEmployeeCommand,
                            IUpdateEmployeeCommand updateEmployeeCommand,
                            IDeleteEmployeeCommand deleteEmployeeCommand,
                            IGetEmployeeByIdQuery getEmployeeByIdQuery,
                            IExistEmployeeQuery existEmployeeQuery)
 {
     _getEmployeesQuery     = getEmployeesQuery;
     _createEmployeeCommand = createEmployeeCommand;
     _updateEmployeeCommand = updateEmployeeCommand;
     _deleteEmployeeCommand = deleteEmployeeCommand;
     _getEmployeeByIdQuery  = getEmployeeByIdQuery;
     _existEmployeeQuery    = existEmployeeQuery;
 }