private CustomSearchResult Search(CatalogEntrySearchCriteria criteria, IContent currentContent) { ISearchResults searchResult = _search.Search(criteria); return(new CustomSearchResult { ProductViewModels = CreateProductViewModels(searchResult) }); }
private CatalogEntrySearchCriteria CreateFullSearchCriteria(IContent currentContent, FilterOptionViewModel filterOptions) { var criteria = new CatalogEntrySearchCriteria(); if (currentContent is NodeContent nodeContent) { criteria.CatalogName = nodeContent.Code; } return(criteria); }
public virtual ISearchResults Search(CatalogEntrySearchCriteria criteria) { Initialize(); return(_searchManager.Search(criteria)); }