public ActionResult Index() { ViewBag.Categories = _categoryContract.ParentSelectList("请选择品类").ToList(); ViewBag.Brands = CacheAccess.GetBrand(_brandContract, true); ViewBag.Colors = CacheAccess.GetColorsName(_colorContract, true); return(View()); }
public ActionResult VProduct() { ViewBag.Color = CacheAccess.GetColorsName(_colorContract, true); ViewBag.Brand = CacheAccess.GetBrand(_brandContract, true, false); ViewBag.Category = CacheAccess.GetCategory(_categoryContract, true); ViewBag.Season = CacheAccess.GetSeason(_seasonContract, true); ViewBag.Crowds = CacheAccess.GetProductCrowd(_productCrowdContract, true); return(PartialView()); }
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()); }