Exemple #1
0
        private CatalogEntrySearchCriteria CreateFullSearchCriteria(IContent currentContent, FilterOptionViewModel filterOptions)
        {
            var criteria = new CatalogEntrySearchCriteria();

            if (currentContent is NodeContent nodeContent)
            {
                criteria.CatalogName = nodeContent.Code;
            }

            return(criteria);
        }
Exemple #2
0
        public CustomSearchResult Search(IContent currentContent, FilterOptionViewModel filterOptions)
        {
            var criteria = CreateFullSearchCriteria(currentContent, filterOptions);

            return(Search(criteria, currentContent));
        }