public IEnumerable <PayrollSalaryMasterSheetDTO> GetAllPayrollSalaryMasterSheetFilter(string id, string yearValue) { int employeeCode = Convert.ToInt32(id); int fiscalYear = Convert.ToInt32(yearValue); return(PayrollSalaryMasterSheetResponseFormatter.GetAllTPayrollMasterSheet(_unitOfWork.PayrollSalaryMasterSheetRepository.Get(m => m.EmployeeCode == employeeCode && m.PayrollSalaryTable.PayrollMonthDescription.FyId == fiscalYear))); }
public IEnumerable <PayrollSalaryMasterSheetDTO> GetPayrollSalaryMasterSheet(int Id) { IEnumerable <PayrollSalaryMasterSheet> db = _unitOfWork.PayrollSalaryMasterSheetRepository.All().Where(x => x.PayrollSalaryTableId == Id).ToList(); IEnumerable <PayrollSalaryMasterSheetDTO> view = PayrollSalaryMasterSheetResponseFormatter.GetAllTPayrollMasterSheet(db); return(view); }
public IEnumerable <PayrollSalaryMasterSheetDTO> GetAllPayrollSalaryMasterSheet(string id) { int employeeCode = Convert.ToInt32(id); return(PayrollSalaryMasterSheetResponseFormatter.GetAllTPayrollMasterSheet(_unitOfWork.PayrollSalaryMasterSheetRepository.Get(m => m.EmployeeCode == employeeCode))); }