public virtual AccountClose Close(int?closeToAccountId, string transactionTag, string closeReason, Connection connection = null, object userDefinedObjectForLogging = null) { connection = connection ?? Connection.CreateFromConfig(); var rv = AccountClose.Close(this.CustomerId, this.AccountId, closeToAccountId, transactionTag, closeReason, connection, userDefinedObjectForLogging); return(rv); }
public static AccountClose Close(int?customerId, int?accountId, int?closeToAccountId, string transactionTag, string closeReason, Connection connection = null, object userDefinedObjectForLogging = null) { var ac = new AccountClose(customerId, accountId); ac.CloseToAccountId = closeToAccountId; ac.TransactionTag = transactionTag; ac.CloseReason = closeReason; return(ac.Close(connection, userDefinedObjectForLogging)); }