Exemplo n.º 1
0
        public ActionResult Index()
        {
            if (!_workContext.Authorizations().Menus.Contains(2006))
            {
                throw new HttpException(404, "Page not found.");
            }

            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            if (!_workContext.Authorizations().Menus.Contains(3001))
            {
                throw new HttpException(404, "Page not found.");
            }

            ViewBag.RoleId = _workContext.Role().Id;
            return(View());
        }