Example #1
0
        public PayrollRemoteAllowancesDTO InsertPayrollRemoteAllowance(PayrollRemoteAllowancesDTO data)
        {
            PayrollRemoteAllowance rA = PayrollRemoteAllowancesRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(PayrollRemoteAllowancesRequestFormatter.ConvertRespondentToDTO(_unitOfWork.PayrollRemoteAllowanceRepository.Create(rA)));
        }
Example #2
0
        public int UpdatePayrollRemoteAllowance(PayrollRemoteAllowancesDTO data)
        {
            PayrollRemoteAllowance rA = PayrollRemoteAllowancesRequestFormatter.ConvertRespondentInfoFromDTO(data);

            return(_unitOfWork.PayrollRemoteAllowanceRepository.Update(rA));
        }
Example #3
0
        public PayrollRemoteAllowancesDTO GetPayrollRemoteAllowanceByID(int rAId)
        {
            PayrollRemoteAllowancesDTO rA = PayrollRemoteAllowancesRequestFormatter.ConvertRespondentToDTO(_unitOfWork.PayrollRemoteAllowanceRepository.GetById(rAId));

            return(rA);
        }