예제 #1
0
        public PayrollOvertimeDTO InsertPayrollOvertime(PayrollOvertimeDTO data)
        {
            PayrollOvertime dataToInsert = new PayrollOvertime();

            dataToInsert = PayrollOvertimeRequestFormatter.ConvertRespondentInfoFromDTO(data);
            return(PayrollOvertimeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.PayrollOvertimeRepository.Create(dataToInsert)));
        }
예제 #2
0
 public PayrollOvertimeDTO GetPayrollOvertimeById(int id)
 {
     return(PayrollOvertimeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.PayrollOvertimeRepository.GetById(id)));
 }