public void deposit(decimal addAmt) { this.AccountBalance += addAmt; BankTransaction Instance = new BankTransaction(addAmt); Transaction.Add(Instance); }
public bool withdraw(decimal outAmt) { bool chk = false; if (outAmt > this.AccountBalance) { return(false); } else { this.AccountBalance -= outAmt; chk = true; BankTransaction Instance = new BankTransaction((outAmt * -1)); Transaction.Add(Instance); } return(chk); }