public override void mDeposit(BankBEntities.CAccountsEnt accobj) { _balance += accobj.AMOUNT; balchange(accobj); // Raising the Event if (onbalchange != null) { onbalchange(accobj); } }
public override void mWithdraw(BankBEntities.CAccountsEnt accobj) { if (_balance > 5000) { _balance -= accobj.AMOUNT; balchange(accobj); // Raising the Event if (onbalchange != null) { onbalchange(accobj); } } else { throw new InSufficientFundException("You have In Sufficient Funds in your Account"); } }