public void OnGet() { var manager = GamesManager.GetGamesManager(); NewGame = manager.GetGame(Request.Cookies["game-id"]); var playerId = Request.Cookies["player-id"]; Int32.TryParse(playerId, out var id); IsCreator = id == NewGame.Owner.Id ? true : false; }
public void OnGet() { var manager = GamesManager.GetGamesManager(); CurrentGame = manager.GetGame(Request.Cookies["game-id"]); }