Example #1
0
        /// <summary>
        /// 三级分类-详情
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public ActionResult Category3(int ID)
        {
            SearchCriteriaModel criteria = new SearchCriteriaModel()
            {
                Category3ID = ID,
                PageSize    = 10
            };
            ProductSearchResultVM pageVM = SearchManager.Search(criteria, HttpContext.Request.QueryString);

            var allCategories   = CategoryFacade.QueryCategoryInfos();
            var subCategoryInfo = allCategories.Find(f => f.CategoryType == CategoryType.SubCategory && f.CategoryID == ID);

            if (subCategoryInfo != null)
            {
                ViewBag.Title = subCategoryInfo.CategoryName;
            }
            ViewBag.ID = ID;
            return(View(pageVM));
        }