public RbacRoleWeb Get(string name) { RbacRole role = Rbac.GetRole(name); if (role != null) { role.ParseMetaData(); return(new RbacRoleWeb(role)); } return(null); }
public RbacRoleWeb Get(int id) { RbacRole role = Rbac.GetRole(id); if (role != null) { role.ParseMetaData(); return(new RbacRoleWeb(role)); } return(null); }