public int UpdateEmployeePrize(EmployeePrizeDTO data) { EmployeePrize dataToUpdate = EmployeePrizeRequestFormatter.ConvertRespondentInfoFromDTO(data); var res = _unitOfWork.EmployeePrizeRepository.Update(dataToUpdate); return(res); }
public EmployeePrizeDTO InsertPrizeOfEmployee(EmployeePrizeDTO data) { EmployeePrize dataToInsert = EmployeePrizeRequestFormatter.ConvertRespondentInfoFromDTO(data); return(EmployeePrizeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeePrizeRepository.Create(dataToInsert))); }
public EmployeePrizeDTO GetPrizeById(int id) { return(EmployeePrizeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.EmployeePrizeRepository.GetById(id))); }