public Details ( int id ) : System.Web.Mvc.ActionResult | ||
id | int | |
return | System.Web.Mvc.ActionResult |
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);
}