private List <SelectListItem> RList() { List <SelectListItem> ls = new List <SelectListItem>(); foreach (var item in _referee.GetItemList(null, null)) { ls.Add(new SelectListItem { Text = item.name, Value = item.ID.ToString() }); } return(ls); }
// GET: Admin/Referee public ActionResult Index(int?SportTypeID, int?CountryID) { var model = _Referee.GetItemList(SportTypeID, CountryID); return(View(model)); }