public ActionResult ListPlayers(ListPlayersVM vm) { var results = _playerRepo.GetPlayers(vm.SelectedValue); ViewBag.Team = _playerRepo.GetTeamByID(vm.SelectedValue); return View(results); }
public ActionResult GetPlayers() { var vm = new ListPlayersVM(); vm.CreateTeamList(_teamRepo.GetTeams()); return View("GetPlayersByTeam", vm); }