private string performAccountUpdate(int srcAccNo, int destAccNo, TransactionTypes type, int amount) { string response = null; switch (type) { case TransactionTypes.withdrawl: response = getStringCommand.get("account/transact/withdraw/" + srcAccNo + "/" + amount); break; case TransactionTypes.deposit: response = getStringCommand.get("account/transact/deposit/" + srcAccNo + "/" + amount); break; case TransactionTypes.transfer: response = getStringCommand.get("account/transact/transfer/" + srcAccNo + "/" + destAccNo + "/" + amount); break; } return(response); }
public string ChangeAccountBranch(int accNo, int branchId) { return(getStringCommand.get("account/linked/" + accNo + "/" + branchId)); }