public ActionResult Details(int id) { var game = _gameService.GetGame(id); var shots = _shotService.GetShots(id); var allPlayers = _playerService.GetPlayers(); var allHoles = _holeService.GetHoles(); var gamePanel = new GamePanelViewModel(game, shots, allPlayers, allHoles); return(View(gamePanel)); }
public ActionResult Holes() { var allLeagueHoles = _holeService.GetHoles(); return(View(allLeagueHoles)); }