public ActionResult GetOptions() { var brands = CacheAccess.GetBrand(_brandContract, true, false); var brandOptions = brands.Select(s => new { s.Text, s.Value }).ToList(); var categories = CacheAccess.GetCategorys(_categoryContract).Select(s => new SelectListItem() { Text = s.CategoryName, Value = s.Id.ToString() }); var categoryOptions = categories.Select(s => new { Text = s.Text, Value = s.Value }).ToList(); categoryOptions.Insert(0, new { Text = "请选择品类", Value = "" }); var seasons = CacheAccess.GetSeason(_seasonContract, true); var seasonOptions = seasons.Select(s => new { s.Text, s.Value }).ToList(); //var storeOptions = _storeContract .Stores.Where(s => !s.IsDeleted && s.IsEnabled && s.IsAttached) // .Select(s => new { Text = s.StoreName, Value = s.Id }) // .ToList(); // storeOptions.Insert(0, new { Text = "请选择店铺", Value = 0 }); return(Json(new OperationResult(OperationResultType.Success, string.Empty, new { brandOptions, categoryOptions, seasonOptions, //storeOptions }), JsonRequestBehavior.AllowGet)); }