public ActionResult wdLoanApplication(string code) { BusinessObjects.LoanApplicationModel loan = new BusinessObjects.LoanApplicationModel(); if (code.Length > 3) { loan = new BusinessObjects.LoanApplicationModel(); loan = service.getLoanFormDetails(code); loan.orgs = customerComp.getOrganization(); loan.districts = customerComp.getDistrict(); loan.applicationTypes = customerComp.getApplicationType(); loan.products = service.GetLoanProducts(); // loan.sets = service.GetLoanSet(); // loan.terms = service.GetLoanTerms(); loan.borrowerProfile = service.GetBorrowerProfile(loan.BorrowerCode); loan.reqDocs = service.getBorrowerRequiredDocuments(loan.BorrowerCode); } // loan.AccountNo = loanID; return(View("LoanApplication", loan)); }