public ActionResult NewCreditInvestigation(string LoanApplicationNo) { BusinessObjects.CreditInvestigation ci = new BusinessObjects.CreditInvestigation(); ci = crdService.getCRForm(LoanApplicationNo.Replace("LA-", "")); ci.CINumber = LoanApplicationNo.Replace("LA-", ""); ci.loanModel = loanService.getLoanFormDetails(LoanApplicationNo); ci.loanModel.products = loanService.GetLoanProducts(); // ci.loanModel.terms = loanService.GetLoanTerms(ci.loanModel.DistrictCode, ci.loanModel.ProductId, ci.loanModel.SetId); // ci.loanModel.terms = loanService.GetLoanTerms(); ci.RecommendedMLV = "0"; ci.MonthlyInstallment = "0"; string BorrowerCode = ci.loanModel.BorrowerCode; ci.borrowProf = loanService.GetBorrowers(BorrowerCode).First(); ci.incomes = crdService.getIncome(ci.borrowProf.id); ci.Date = DateTime.Now.ToShortDateString(); return(View("CreditInvestigationFrm", ci)); }
public ActionResult ListBorrowers(string filterKey) { return(Json(service.GetBorrowers(filterKey))); }