public void StartGame(int gameSessionId) { var gameSession = gameSessionService.GetGameSessionById(gameSessionId); Playground playground = new Playground(gameSession); playground.Show(); UserProfile.CurrentForm.CloseForm(); }
public GameSession GetGameSessionById(int gameSessionId) { try { return(gameSessionService.GetGameSessionById(gameSessionId)); } catch (Exception ex) { throw; } }