Пример #1
0
        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));
        }
Пример #2
0
        public ActionResult Holes()
        {
            var allLeagueHoles = _holeService.GetHoles();

            return(View(allLeagueHoles));
        }