public ActionResult Index() { if (!_workContext.Authorizations().Menus.Contains(2006)) { throw new HttpException(404, "Page not found."); } return(View()); }
public ActionResult Index() { if (!_workContext.Authorizations().Menus.Contains(3001)) { throw new HttpException(404, "Page not found."); } ViewBag.RoleId = _workContext.Role().Id; return(View()); }