Beispiel #1
0
        public static PageCollection GetPages(int pageTypeId, PublishState pageState = PublishState.Published)
        {
            Predicate <PageIndexItem> match = page => page.PageTypeId == pageTypeId;

            match = match.And(PageIndex.GetPublishStatePredicate(pageState));
            return(CurrentIndex.GetPagesByCriteria(match));
        }