public bool MakeTransfer() { Transfer = true; CreateTransaction createTransaction = new CreateTransaction(_context); if (createTransaction.Transfer(FromAccount, ToAccount, Amount)) { StatusMessage = "Transfer successful"; return(true); } return(false); }
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); }