예제 #1
0
        private List <SelectListItem> STList()
        {
            List <SelectListItem> pg = new List <SelectListItem>();

            foreach (var item in _stadium.GetItemList(null))
            {
                pg.Add(new SelectListItem {
                    Text = item.Name, Value = item.ID.ToString()
                });
            }
            return(pg);
        }
예제 #2
0
        public ActionResult Index(int?CityID)
        {
            var model = _Stadium.GetItemList(CityID);

            return(View(model));
        }