Example #1
0
        public RbacRoleWeb Get(string name)
        {
            RbacRole role = Rbac.GetRole(name);

            if (role != null)
            {
                role.ParseMetaData();
                return(new RbacRoleWeb(role));
            }
            return(null);
        }
Example #2
0
        public RbacRoleWeb Get(int id)
        {
            RbacRole role = Rbac.GetRole(id);

            if (role != null)
            {
                role.ParseMetaData();
                return(new RbacRoleWeb(role));
            }
            return(null);
        }