private async void Connect() { if (Players.Count == 0) { await GameFacade.AddPlayerToDatabase(GameFacade.GetGame().CreatePlayer(1)); _currentPlayerId = 1; textBox1.AppendText("Player 1 Connected."); P1Connected = true; } else if (Players?.Count == 1) { await GameFacade.AddPlayerToDatabase(GameFacade.GetGame().CreatePlayer(2)); _currentPlayerId = 2; textBox1.AppendText("Player 2 Connected."); P2Connected = true; } ObsticalesBraizymas(); // Deserialize the updated product from the response body. // return URI of the created resource. }