public void SendBackInterBankTransfer(InterBankTransfer interBankTransfer) { var returnTransfer = new InterBankTransfer(interBankTransfer.getReceiverBank(), interBankTransfer.getReceiverID(), interBankTransfer.getSenderBank(), interBankTransfer.getSenderID(), interBankTransfer.getAmount()); SendInterBankTransfer(returnTransfer); }
public void SendInterBankTransfer(InterBankTransfer interBankTransfer) { var receiverBank = interBankTransfer.getReceiverBank(); if (BankList.Contains(receiverBank)) { receiverBank.receiveInterBankTransfer(interBankTransfer); } }