private AdvanceUnit GetAdvanceUnitList(int loanId) { UnitAccess unitAccess = new UnitAccess(); List<Models.Unit> unitList = new List<Models.Unit>(); unitList = unitAccess.GetNotAdvancedUnitDetailsByLoanId(loanId); List<Models.Unit> unitList2 = new List<Models.Unit>(); AdvanceUnit unitList1 = new AdvanceUnit(); unitList1.NotAdvanced = unitList; unitList1.Search = unitList2; unitList1.AdvanceDate = DateTime.Now; return unitList1; }
private Models.AdvanceUnit GetAdvanceUnitList(int loanId) { UnitAccess unitAccess = new UnitAccess(); List<BankLoanSystem.Models.Unit> unitList = new List<Models.Unit>(); unitList = unitAccess.GetNotAdvancedUnitDetailsByLoanId(loanId); List<BankLoanSystem.Models.Unit> unitList2 = new List<Models.Unit>(); Models.AdvanceUnit unitList1 = new Models.AdvanceUnit(); unitList1.NotAdvanced = unitList; unitList1.Search = unitList2; return unitList1; }