public static List<Usergroup> List(string Scope) { List<Usergroup> result = new List<Usergroup> (); foreach (Usergroup usergroup in BuiltInUsergroups) { if (usergroup._scope == Scope) { result.Add (usergroup); } } SorentoLib.Services.Datastore.MetaSearch metasearch = new SorentoLib.Services.Datastore.MetaSearch ("scope", Enums.DatastoreMetaSearchComparisonOperator.Equal, Scope); foreach (string shelf in Services.Datastore.ListOfShelfs (DatastoreAisle, metasearch)) { result.Add (Load (new Guid (shelf))); } return result; }
public static List<User> List(string Scope) { List<User> result = new List<User> (); Services.Datastore.MetaSearch metasearch = new SorentoLib.Services.Datastore.MetaSearch ("scope", Enums.DatastoreMetaSearchComparisonOperator.Equal, Scope); foreach (string shelf in Services.Datastore.ListOfShelfs (DatastoreAisle, metasearch)) { result.Add (Load (new Guid (shelf))); } return result; }