Beispiel #1
0
        protected virtual string GetCategoryUrl(string categoryId, GetCategoryBrowsingViewModelParam param, bool isAllProductsPage = false)
        {
            string url = CategoryBrowsingUrlProvider.BuildCategoryBrowsingUrl(new BuildCategoryBrowsingUrlParam
            {
                CategoryId        = categoryId,
                CultureInfo       = param.CultureInfo,
                BaseUrl           = param.BaseUrl,
                IsAllProductsPage = isAllProductsPage
            });

            return(url);
        }
Beispiel #2
0
        protected override string GenerateUrl(CreateSearchPaginationParam <BrowsingSearchParam> param)
        {
            var cloneParam = (BrowsingSearchParam)param.SearchParameters.Clone();

            if (cloneParam.CategoryFilters != null)
            {
                RemoveAppendedCategoryFacet(cloneParam);
            }

            var nameValueCollection = CategoryBrowsingUrlProvider.BuildSearchQueryString(new BuildSearchUrlParam()
            {
                SearchCriteria = cloneParam.Criteria
            });

            return(UrlFormatter.ToUrlString(nameValueCollection));
        }