public ActionResult CreateSportDiscussion()
        {
            ViewBag.SportId = new SelectList(sportService.GetSports(), "SportId", "League");
            ViewBag.Matchup = new SelectList(sportService.GetSports(), "SportId", "Matchup");

            return(View());
        }
Esempio n. 2
0
        // GET: Sport
        public ActionResult Index()
        {
            var service = new SportService();
            var model   = service.GetSports().OrderBy(x => x.League).ThenBy(x => x.Time);

            return(View(model));
        }