/// <summary>
        ///     Set Default values
        /// </summary>
        public CategoryPageViewModel()
        {
            LocalCategory  = null;
            PagerData      = new PagerViewModel();
            SortSelectList = new List <SelectListItem>();
            SubCategories  = new List <SingleCategoryViewModel>();
            Products       = new List <SingleProductViewModel>();
            Manufactures   = new List <VendorManufacturer>();
            Vendors        = new List <VendorManufacturer>();
            Types          = new List <ProductType>();

            LeftColumn = string.Empty;
            PreColumn  = string.Empty;
            PostColumn = string.Empty;
        }
        /// <summary>
        ///     Set default values
        /// </summary>
        public SearchPageViewModel()
        {
            LocalCategory  = null;
            PagerData      = new PagerViewModel();
            SortSelectList = new List <SelectListItem>();
            SubCategories  = new List <SingleCategoryViewModel>();
            Products       = new List <SingleProductViewModel>();

            Categories   = new List <FacetItem>();
            Manufactures = new List <FacetItem>();
            Vendors      = new List <FacetItem>();
            Types        = new List <FacetItem>();
            Properties   = new List <PropertyFacetItem>();

            SelectedCategories   = new List <SelectedFacetItem>();
            SelectedManufactures = new List <SelectedFacetItem>();
            SelectedVendors      = new List <SelectedFacetItem>();
            SelectedTypes        = new List <SelectedFacetItem>();
            SelectedProperties   = new List <SelectedPropertyFacetItem>();

            CurrentRouteValues = new RouteValueDictionary();
        }
Exemple #3
0
 /// <summary>
 ///     Set default values
 /// </summary>
 public ProductListViewModel()
 {
     Title     = string.Empty;
     PagerData = new PagerViewModel();
     Items     = new List <Product>();
 }