예제 #1
0
        public ActionResult Products(string filter, int categoryID, string path, int?pagesize, int?orderby, string viewmode)
        {
            var context = _filterService.CreateFilterProductContext(filter, categoryID, path, pagesize, orderby, viewmode);

            _filterService.ProductFilterable(context);

            return(PartialView(new ProductFilterModel {
                Context = context
            }));
        }
예제 #2
0
        public ActionResult Products(string filter, int categoryID, string path, int?pagesize, int?orderby, string viewmode)
        {
            var context = _filterService.CreateFilterProductContext(filter, categoryID, path, pagesize, orderby, viewmode);

            _filterService.ProductFilterable(context);

            return(PartialView(new ProductFilterModel
            {
                Context = context,
                IsShowAllText = IsShowAllText(context.Criteria),
                MaxFilterItemsToDisplay = _catalogSettings.MaxFilterItemsToDisplay,
                ExpandAllFilterGroups = _catalogSettings.ExpandAllFilterCriteria
            }));
        }