//return banknote and their amount, if not enough money on card throws NotENoughMoneyException, //if not enough banknotes in ATM, throws NoMoneyException public Dictionary <Banknote, int> WisdrawMoney(int money) { decimal commMon = CardBank.GetCommInMoney(money, GetWisdrawCommision()); cardBank.WithdrawMoney(money, commMon); return(cashGiver.GiveMoney(money)); }
public decimal GetCommisionInMoney(decimal money, decimal commInPercentage) { return(CardBank.GetCommInMoney(money, commInPercentage)); }