/// <summary> /// Retrieves a list of ChannelGroup's with the same KeywordID. /// </summary> public static List <ChannelGroup> RetrieveChannelGroups(int KeywordID) { if (KeywordID < 1) { return(null); } Key key = new Key(typeof(KeywordMap), true, "idKeyword", KeywordID); IList <KeywordMap> list = Broker.RetrieveList <KeywordMap>(key); List <ChannelGroup> channelGroupList = new List <ChannelGroup>(); foreach (KeywordMap map in list) { if (map.IdChannelGroup > 0) { ChannelGroup channelGroup = ChannelGroup.Retrieve(map.IdChannelGroup); if (channelGroup != null) { channelGroupList.Add(channelGroup); } } } return(channelGroupList); }
/// <summary> /// /// </summary> public ChannelGroup ReferencedChannelGroup() { return(ChannelGroup.Retrieve(IdChannelGroup)); }