public int UpdatePayrollSalaryMasterSheet(PayrollSalaryMasterSheetDTO data) { PayrollSalaryMasterSheet dataToUpdate = PayrollSalaryMasterSheetRequestFormatter.ConvertRespondentInfoFromDTO(data); var res = _unitOfWork.PayrollSalaryMasterSheetRepository.Update(dataToUpdate); return(res); }
public PayrollSalaryMasterSheetDTO InsertPayrollSalaryMasterSheet(PayrollSalaryMasterSheetDTO data) { PayrollSalaryMasterSheet dataToInsert = new PayrollSalaryMasterSheet(); dataToInsert = PayrollSalaryMasterSheetRequestFormatter.ConvertRespondentInfoFromDTO(data); return(PayrollSalaryMasterSheetRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.PayrollSalaryMasterSheetRepository.Create(dataToInsert))); }
public PayrollSalaryMasterSheetDTO GetIndividualSalarySheetDescription(int Id) { PayrollSalaryMasterSheet db = _unitOfWork.PayrollSalaryMasterSheetRepository.GetById(Id); PayrollSalaryMasterSheetDTO Record = PayrollSalaryMasterSheetRequestFormatter.ConvertRespondentInfoToDTO(db); Record.PayrollSalaryDetailSheets = PayrollSalaryDetailSheetResponseFormatter.GetAllPayrollDetailSheet(db.PayrollSalaryDetailSheets).Where(x => x.AllowanceType == "O"); Record.PayrollEmployeeTaxDetails = PayrollEmployeeTaxDetailResponseFormatter.GetAllTaxDetailSheet(db.PayrollEmployeeTaxDetails); return(Record); }
public PayrollSalaryMasterSheetDTO GetPayrollSalaryMasterSheetById(int id) { return(PayrollSalaryMasterSheetRequestFormatter.ConvertRespondentInfoToDTO(_unitOfWork.PayrollSalaryMasterSheetRepository.GetById(id))); }