📅  最后修改于: 2022-03-11 14:48:43.345000             🧑  作者: Mango
IEnumerable stores = database.Stores
.Where(store => store.CompanyID == curCompany.ID)
.Select(store => new SelectListItem { Value = store.Name, Text = store.ID });
ViewBag.storeSelector = stores;