示例#1
0
 public void WithdrawFromAccountUI(IAccount account)
 {
     view.AskForWithdrawAmmount();
     if (decimal.TryParse(Console.ReadLine(), out decimal ammount))
     {
         WithdrawFromAccount(account, ammount);
     }
     else
     {
         view.DisplayInvalidMoneyFormat();
     }
 }