public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID) { IList lists = new ListInfoCollection(); foreach (KeyValuePair <string, ListInfo> listPair in GetListInfoDictionary(PortalID)) { ListInfo list = listPair.Value; if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) && (list.PortalID == PortalID || PortalID == Null.NullInteger)) { lists.Add(list); } } return((ListInfoCollection)lists); }
public ListInfoCollection GetListInfoCollection(string listName, string parentKey, int portalId) { IList lists = new ListInfoCollection(); foreach (KeyValuePair <string, ListInfo> listPair in GetListInfoDictionary(portalId).OrderBy(l => l.Value.DisplayName)) { ListInfo list = listPair.Value; if ((list.Name == listName || string.IsNullOrEmpty(listName)) && (list.ParentKey == parentKey || string.IsNullOrEmpty(parentKey)) && (list.PortalID == portalId || portalId == Null.NullInteger)) { lists.Add(list); } } return((ListInfoCollection)lists); }
public ListInfoCollection GetListInfoCollection(string ListName, string ParentKey, int PortalID) { IList lists = new ListInfoCollection(); foreach (KeyValuePair<string, ListInfo> listPair in GetListInfoDictionary(PortalID)) { ListInfo list = listPair.Value; if ((list.Name == ListName || string.IsNullOrEmpty(ListName)) && (list.ParentKey == ParentKey || string.IsNullOrEmpty(ParentKey)) && (list.PortalID == PortalID || PortalID == Null.NullInteger)) { lists.Add(list); } } return (ListInfoCollection) lists; }
public ListInfoCollection GetListInfoCollection(string listName, string parentKey, int portalId) { IList lists = new ListInfoCollection(); foreach (KeyValuePair<string, ListInfo> listPair in GetListInfoDictionary(portalId).OrderBy(l => l.Value.DisplayName)) { ListInfo list = listPair.Value; if ((list.Name == listName || string.IsNullOrEmpty(listName)) && (list.ParentKey == parentKey || string.IsNullOrEmpty(parentKey)) && (list.PortalID == portalId || portalId == Null.NullInteger)) { lists.Add(list); } } return (ListInfoCollection)lists; }