示例#1
0
        public string Withdraw()
        {
            try
            {
                var value = hardware.GetValueToWithdraw();

                account.Withdraw(value);

                remoteService.PersistAccount(account);

                return(SuccessWithdrawMessage);
            }
            catch (InsufficientBalanceException)
            {
                return(InsufficientBalanceMessage);
            }
        }