Пример #1
0
        public CatalogPagingFilteringModel()
        {
            AvailableSortOptions = new List <SelectListItem>();
            AvailableViewModes   = new List <SelectListItem>();
            PageSizeOptions      = new List <SelectListItem>();

            PriceRangeFilter    = new PriceRangeFilterModel();
            SpecificationFilter = new SpecificationFilterModel();
        }
Пример #2
0
 public CategoryProductPagingFilteringModel()
 {
     PriceRangeFilter          = new PriceRangeFilterModel();
     BrandRangeFilter          = new BrandRangeFilterModel();
     CategoryFilterRangeFilter = new CategoryFilterRangeFilterModel();
     AvailableSortOptions      = new List <SelectListItem>();
     AvailableViewModes        = new List <SelectListItem>();
     OrderBy    = ProductSortingType.StockDesc;
     ViewMode   = "grid";
     PageSize   = 36; //Default
     PageNumber = 1;  //Default
     From       = string.Empty;
     To         = string.Empty;
 }