Ejemplo n.º 1
0
        public void UpdateOrInsertPlayer(string playerName)
        {
            Player currentPlayer = playerStorage.GetPlayerByName(playerName);

            if (currentPlayer == null)
            {
                throw new Exception("Такого футболиста нет");
            }
            playerStorage.UpdateOrInsertPlayer(currentPlayer);
        }