Пример #1
0
        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));
        }