public ActionResult LoanPartial() { Params param = new Params() { Parameter = new Dictionary <string, string>() }; string accountno = Request["accountNo"]; string loannumber = Request["loanNumber"]; char pad = '0'; param.RequestTransType = "GetLoanInfoDetail"; param.Parameter.Add("acctNo", accountno); param.Parameter.Add("noteNo", loannumber.PadLeft(5, pad)); LoanInfo model = ProductInquiry.Loan(param); if (model != null && model.LoanNumber != null) { ViewBag.searchResults = model; ViewBag.searchResultsCount = 1; ViewBag.searchResultsList = model.Installments; ViewBag.searchResultsListCount = model.Installments.Count; } return(PartialView("_Loan", model)); }
public JsonResult GetLoanData(string _accountno = null, string _loannumber = null) { Params param = new Params() { Parameter = new Dictionary <string, string>() }; param.RequestTransType = "GetLoanInfoDetail"; param.Parameter.Add("acctNo", _accountno); param.Parameter.Add("noteNo", _loannumber); LoanInfo loan = ProductInquiry.Loan(param); return(Json(loan, JsonRequestBehavior.AllowGet)); }