public static List <UserGroupInfo> GetUserGroupInfoList() { return(UserGroupManagerCache.GetAllUserGroups()); }
public static UserGroupInfo GetUserGroupInfo(int groupId) { var list = UserGroupManagerCache.GetAllUserGroups(); return(list.FirstOrDefault(group => group.Id == groupId) ?? list[0]); }
public static UserGroupInfo GetUserGroupInfo(string groupName) { var list = UserGroupManagerCache.GetAllUserGroups(); return(list.FirstOrDefault(group => group.GroupName == groupName) ?? list[0]); }
public static bool IsExists(string groupName) { var list = UserGroupManagerCache.GetAllUserGroups(); return(list.Any(group => group.GroupName == groupName)); }