public static PageDataCollection GetDescendents(int page, Rule rule, Relation relation) { PageReference pr = new PageReference(GetRelatedPageID(relation, page)); PageData referencedPage = DataFactory.Instance.GetPage(pr); return RuleEngine.Instance.SearchRelations(rule, referencedPage.PageLink.ID, string.Empty, pr); }
private static int GetRelatedPageID(Relation relation, int page) { return((relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft); }
private static int GetRelatedPageID(Relation relation, int page) { return (relation.PageIDLeft == page) ? relation.PageIDRight : relation.PageIDLeft; }