예제 #1
0
        // GET: Menu
        public ActionResult Index()
        {
            //var menuList = SystemMenuInfo.GetMenuByAssembly(Assembly.GetExecutingAssembly().GetName().Name);//获取所有加自定义权限控制的Action 信息

            RolePermissionIndex rpIndex = new RolePermissionIndex();

            rpIndex.RoleList = db.GetAllRole();
            rpIndex.PerList  = db.GetAllPermission();
            return(View(rpIndex));
        }