/// <summary> /// fill scheme details /// </summary> /// <param name="id"></param> /// <returns></returns> public JsonResult FillSchemeDetailsById(int id) { try { var result = _schemeService.GetSchemeMasterById(id); SchemeDetailsVM schemeDetailsVM = new SchemeDetailsVM(); schemeDetailsVM.Ltv = result.Ltv; schemeDetailsVM.MaxLoanAmt = result.MaxLoanAmt; schemeDetailsVM.Tenure = result.Tenure; schemeDetailsVM.ROI = result.ROI; return(Json(schemeDetailsVM)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public ActionResult GetSchemeById(int ID) { string operation = Session["Operation"].ToString(); ButtonVisiblity(operation); var tblscheme = _schemeService.GetSchemeMasterById(ID); var model = new SchemeViewModel(); if (tblscheme != null) { model = _schemeService.SetDataOnEdit(tblscheme); } Session["EffectiveROI"] = model.SchemeEffectiveROIList; model.operation = operation; ViewBag.PurityList = new SelectList(_schemeService.GetPurityById(model.Product).ToList(), "Id", "PurityName"); ViewBag.ProductList = new SelectList(_schemeService.GetProductList(), "Id", "Name"); return(View("Scheme", model)); }