示例#1
0
        public List <PagePermission> GetPagePermission(int RoleID, string areaName, string controllerName)
        {
            var permission = UserInfoBz.GetPagePermission();

            return(permission.Where(o =>
                                    o.RoleID == RoleID &&
                                    o.AreaName == areaName &&
                                    o.ControllerName == controllerName)
                   .ToList());
        }
示例#2
0
        public List <PagePermission> GetPagePermission(bool isSuperAdmin, int RoleID, string areaName, string controllerName, string actionName)
        {
            var permission = UserInfoBz.GetPagePermission();

            return(permission.Where(o =>
                                    o.UserName == CurrentUser.UserName &&
                                    o.RoleID == RoleID &&
                                    o.AreaName == areaName &&
                                    o.ControllerName == controllerName &&
                                    o.ActionName == actionName)
                   .ToList());
        }