Пример #1
0
        public ActionResult RiskDetails(int id)
        {
            var model    = new RiskVM();
            var mediator = new RiskMediator();

            model = mediator.GetRisk(id);
            return(View("~/Views/Risk/RiskDetail.cshtml", model));
        }
Пример #2
0
        public ActionResult EditRisk(int id)
        {
            var mediator = new RiskMediator();
            var model    = mediator.GetRisk(id);

            ViewBag.ControllerAction = "EditRisk";
            ViewBag.PageTitle        = "Edit Risk";
            return(View("~/Views/Risk/RiskForm.cshtml", model));
        }