Пример #1
0
 private bool LocalTransfer(decimal ammount, BankAccountActor toAccount)
 {
     if (LocalWithdrawl(ammount))
     {
         toAccount.Deposit(ammount);
         return(true);
     }
     return(false);
 }
Пример #2
0
 public Task <bool> Transfer(decimal ammount, BankAccountActor toAccount)
 {
     return(Perform(() => LocalTransfer(ammount, toAccount)));
 }