Beispiel #1
0
        static void OperationWithCards(string userAnswer, Account acc, string userLogin, string userPass)
        {
            switch (userAnswer)
            {
            case "1":
                Console.Write("Card name: ");
                string inputCardName = Console.ReadLine();
                Console.Write("Card pin: ");
                string inputCardPin = Console.ReadLine();
                acc.AddNewCard(inputCardName, inputCardPin);
                break;

            case "2":
                ChangeBalance(acc);
                break;

            case "3":
                acc.GetInfo(userLogin, userPass);
                break;

            default:
                break;
            }
        }