public bool MakeTransfer()
        {
            Transfer = true;
            CreateTransaction createTransaction = new CreateTransaction(_context);

            if (createTransaction.Transfer(FromAccount, ToAccount, Amount))
            {
                StatusMessage = "Transfer successful";
                return(true);
            }
            return(false);
        }
예제 #2
0
        public bool MakeTransfer(IBankAppDataContext context)
        {
            CreateTransaction createTransaction = new CreateTransaction(context);

            if (createTransaction.Transfer(FromAccount, ToAccount, Amount))
            {
                StatusMessage = "Transfer successful";
                return(true);
            }
            StatusMessage = createTransaction.ErrorMessage;
            return(false);
        }