Exemplo n.º 1
0
        public static void AddExpense(Wallet wallet)
        {
            AccountType type = ChooseAccount();

            Console.WriteLine("Введите сумму расхода:");
            decimal sum = Convert.ToDecimal(Console.ReadLine());

            Console.WriteLine("Введите название статьи расхода:");
            string name = Console.ReadLine();

            wallet.AddExpense(name, sum, type);
        }