예제 #1
0
        private static void Withdraw()
        {
            Console.WriteLine("Specify the sum to withdraw from the account: ");
            decimal sum = Convert.ToDecimal(Console.ReadLine());

            Console.WriteLine("Enter account id: ");
            int id = Convert.ToInt32(Console.ReadLine());

            _bank.WithdrawAccaunt(new WithdrawAccountParametrs
            {
                Amount = sum,
                Id = id - 1,
                WithdrawAccount = NotifyAccountCreated,
            });
            // Withdraw;
        }