public ActionResult RiskDetails(int id) { var model = new RiskVM(); var mediator = new RiskMediator(); model = mediator.GetRisk(id); return(View("~/Views/Risk/RiskDetail.cshtml", model)); }
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)); }