示例#1
0
 public async Task <OperationDetails> CreateEmployeeStatusAsync(EmployeeStatusDTO employeeStatusDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
 {
     return((await service.CreateItemAsync(employeeStatusDto,
                                           new EmployeeStatusEquelSpecification(employeeStatusDto).ToExpression(),
                                           MessageSuccess,
                                           MessageFail)).Item1);
 }
示例#2
0
        public async Task <OperationDetails> UpdateEmployeeStatusAsync(EmployeeStatusDTO employeeStatusDto, OperationDetails MessageSuccess, OperationDetails MessageFail)
        {
            int idStatusDto = employeeStatusDto.EmployeeStatusID;

            return(await service.UpdateItemAsync(employeeStatusDto,
                                                 idStatusDto,
                                                 MessageSuccess,
                                                 MessageFail));
        }
 public EmployeeStatusMessageSpecification(EmployeeStatusDTO statusDto = null)
 {
     StatusDto = statusDto;
 }
示例#4
0
 public async Task <OperationDetails> UpdateStatus(EmployeeStatusDTO StatusDto)
 {
     return(await employeeStatusService.UpdateEmployeeStatusAsync(StatusDto,
                                                                  new EmployeeStatusMessageSpecification(StatusDto).ToSuccessUpdateMessage(),
                                                                  new EmployeeStatusMessageSpecification(StatusDto).ToFailUpdateMessage()));
 }