Пример #1
0
        public override void OnActionExecuted(ActionExecutedContext context)
        {
            ViewData["user"] = User;
            List <UserRoleJurisdiction> userrolejurlist = _userRoleJurisdictionService.GetList(User.RoleID);

            ViewData["userrolejurlist"] = userrolejurlist;
            List <ModuleInfo> modulelist = _moduleInfoService.GetList();

            ViewData["modulelist"] = modulelist;
            base.OnActionExecuted(context);
        }
Пример #2
0
        /// <summary>
        /// 角色权限
        /// </summary>
        /// <returns></returns>
        public IActionResult AddRoleJuri(int roleid)
        {
            var list = _userRoleJurisdictionService.GetList(roleid);
            List <ModuleInfo> mlist = _moduleInfoService.GetList();

            ViewBag.mlist = mlist;

            UserRole userRole = _userRoleService.Get(roleid);

            ViewBag.userRole = userRole;
            ViewBag.roleid   = roleid;
            ViewBag.root     = "account";
            return(View(list));
        }