// GET: Statistic/Create public ActionResult Create() { ViewBag.MatchID = new SelectList(_statisticRepository.GetAllMatches(), "MatchID", "City"); ViewBag.PlayerID = new SelectList(_statisticRepository.GetAllPlayers(), "ID", "LastName"); return(View()); }