Exemple #1
0
        public async Task OnPostSearch(CatalogIndexViewModel catalogModel, int?pageId)
        {
            if (string.IsNullOrEmpty(searchText))
            {
                await OnGet(catalogModel, pageId);
            }
            else
            {
                CatalogModel =
                    await _catalogSearchService.GetCatalogItemsSearch(pageId ?? 0, Constants.ITEMS_PER_PAGE, catalogModel.BrandFilterApplied, catalogModel.TypesFilterApplied, searchText);

                searchText = null;
            }
        }