Esempio n. 1
0
        public ActionResult Price()
        {
            var brands    = RecommendManager.GetBrands();
            var tireSizes = RecommendManager.SelectALLTireSize();

            return(View(Tuple.Create(brands, tireSizes)));
        }
        private ActionResult TireIndex(string categoryName)
        {
            ViewBag.Title = "轮胎分期购配置";
            var brands = RecommendManager.GetBrandsByCategoryName(categoryName);
            IEnumerable <TireSizeModel> tireSizes = null;

            if (categoryName == "Tires")
            {
                tireSizes = RecommendManager.SelectALLTireSize();
            }
            else if (categoryName == "hub")
            {
                tireSizes = RecommendManager.SelectALLHubSize();
            }
            else
            {
                tireSizes = new List <TireSizeModel>();
            }
            return(View("Index", Tuple.Create(brands, tireSizes)));
        }