public async Task <OperationDetails> CreateEmployeeStatusAsync(EmployeeStatusDTO employeeStatusDto, OperationDetails MessageSuccess, OperationDetails MessageFail) { return((await service.CreateItemAsync(employeeStatusDto, new EmployeeStatusEquelSpecification(employeeStatusDto).ToExpression(), MessageSuccess, MessageFail)).Item1); }
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; }
public async Task <OperationDetails> UpdateStatus(EmployeeStatusDTO StatusDto) { return(await employeeStatusService.UpdateEmployeeStatusAsync(StatusDto, new EmployeeStatusMessageSpecification(StatusDto).ToSuccessUpdateMessage(), new EmployeeStatusMessageSpecification(StatusDto).ToFailUpdateMessage())); }