public bool MakeDeposit(IBankAppDataContext context) { CreateTransaction createTransaction = new CreateTransaction(context); if (createTransaction.Deposit(Account, Amount)) { StatusMessage = "Deposit successful"; return(true); } StatusMessage = createTransaction.ErrorMessage; return(false); }
public bool MakeDeposit() { Deposit = true; CreateTransaction createTransaction = new CreateTransaction(_context); if (createTransaction.Deposit(ToAccount, Amount)) { StatusMessage = "Deposit successful"; return(true); } return(false); }