public void AddPlayer(Player player) { Player currentPlayer = playerStorage.GetPlayerByName(player.Name); if (currentPlayer != null) { throw new Exception("Такой игрок уже есть"); } playerStorage.AddPlayer(player); }