// // GET: /Game/Edit/5 public ActionResult Edit(int id) { ViewBag.TeamTypes = this.GetTeamTypes(); ViewBag.Season = this.GetActiveSeasons(); var game = this.repo.GetById(id); var teamRepo = new TeamRepository(); ViewBag.TeamList = teamRepo.GetAllTeamsByTeamType(game.Team.TeamTypeId); return View(game); }