public PayrollOvertimeDTO InsertPayrollOvertime(PayrollOvertimeDTO data) { PayrollOvertime dataToInsert = new PayrollOvertime(); dataToInsert = PayrollOvertimeRequestFormatter.ConvertRespondentInfoFromDTO(data); return(PayrollOvertimeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.PayrollOvertimeRepository.Create(dataToInsert))); }
public PayrollOvertimeDTO GetPayrollOvertimeById(int id) { return(PayrollOvertimeRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.PayrollOvertimeRepository.GetById(id))); }