예제 #1
0
        public ActionResult BrowseGenderCategory(string ageCategory)
        {
            //var categoryModel = new Category { CategoryName = category};
            var ageCategoryModel = db.GenderAgeCategories.Include(s => s.Products).SingleOrDefault(c => c.GenderAgeCategoryName == ageCategory);

            var prodList = iCategoryRepository.ACategory(ageCategory);

            ViewBag.ac = prodList;
            return(View(ageCategoryModel));
        }