Exemplo n.º 1
0
        private CustomSearchResult Search(CatalogEntrySearchCriteria criteria, IContent currentContent)
        {
            ISearchResults searchResult = _search.Search(criteria);

            return(new CustomSearchResult
            {
                ProductViewModels = CreateProductViewModels(searchResult)
            });
        }
Exemplo n.º 2
0
        private CatalogEntrySearchCriteria CreateFullSearchCriteria(IContent currentContent, FilterOptionViewModel filterOptions)
        {
            var criteria = new CatalogEntrySearchCriteria();

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

            return(criteria);
        }
Exemplo n.º 3
0
 public virtual ISearchResults Search(CatalogEntrySearchCriteria criteria)
 {
     Initialize();
     return(_searchManager.Search(criteria));
 }