public PayrollRemoteAllowancesDTO InsertPayrollRemoteAllowance(PayrollRemoteAllowancesDTO data) { PayrollRemoteAllowance rA = PayrollRemoteAllowancesRequestFormatter.ConvertRespondentInfoFromDTO(data); return(PayrollRemoteAllowancesRequestFormatter.ConvertRespondentToDTO(_unitOfWork.PayrollRemoteAllowanceRepository.Create(rA))); }
public int UpdatePayrollRemoteAllowance(PayrollRemoteAllowancesDTO data) { PayrollRemoteAllowance rA = PayrollRemoteAllowancesRequestFormatter.ConvertRespondentInfoFromDTO(data); return(_unitOfWork.PayrollRemoteAllowanceRepository.Update(rA)); }
public PayrollRemoteAllowancesDTO GetPayrollRemoteAllowanceByID(int rAId) { PayrollRemoteAllowancesDTO rA = PayrollRemoteAllowancesRequestFormatter.ConvertRespondentToDTO(_unitOfWork.PayrollRemoteAllowanceRepository.GetById(rAId)); return(rA); }