public ActionResult CreateSportDiscussion() { ViewBag.SportId = new SelectList(sportService.GetSports(), "SportId", "League"); ViewBag.Matchup = new SelectList(sportService.GetSports(), "SportId", "Matchup"); return(View()); }
// GET: Sport public ActionResult Index() { var service = new SportService(); var model = service.GetSports().OrderBy(x => x.League).ThenBy(x => x.Time); return(View(model)); }