/// <summary> /// /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Details(Nullable <int> request) { if (request == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } LoanRequestVwViewModel loanRequestVwViewModel = new LoanRequestVwViewModel(); Db db = new Db(DbServices.ConnectionString); // loanRequestVwViewModel.Instance = LoanRequestVwServices.Get(request.Value, db); loanRequestVwViewModel.Instance = LoanRequestVwServices.GetChildren(request.Value, db); if (loanRequestVwViewModel.Instance == null) { return(HttpNotFound()); } @ViewBag.ExceptionalAmountVwTitle = ResourceServices.GetString(Cf.Data.Resources.ResourceBase.Culture, "ExceptionalAmount", "ModuleNamePlural"); // loanRequestVwViewModel.ExceptionalAmountVwViewModel.List = ExceptionalAmountVwServices.GetByLoanRequestId(request.Value, db); loanRequestVwViewModel.ExceptionalAmountVwViewModel.List = loanRequestVwViewModel.Instance.ExceptionalAmountVwList; return(View(loanRequestVwViewModel)); }