public ActionResult CreateDiscount() { ViewBag.Color = CacheAccess.GetColorsName(_colorContract); // ViewBag.Color = (_colorContract.SelectList("选择颜色").Select(m => new SelectListItem { Text = m.Key, Value = m.Value })).ToList(); ViewBag.Brand = CacheAccess.GetBrand(_brandContract); ViewBag.Category = CacheAccess.GetCategory(_categoryContract); ViewBag.Season = CacheAccess.GetSeason(_seasonContract, false); // ViewBag.Size = CacheAccess.GetSize(_sizeContract, _categoryContract); ViewBag.Discount = StaticHelper.DiscountList("选择折扣"); ViewBag.OneCollo = CacheAccess.GetOneCollo(_productAttributeContract, false); return(View()); }