public async virtual Task <AccountClose> CloseAsync(CancellationToken cancellationToken, int?closeToAccountId, string transactionTag, string closeReason, Connection connection = null, object userDefinedObjectForLogging = null) { connection = connection ?? Connection.CreateFromConfig(); var rv = await AccountClose.CloseAsync(cancellationToken, this.CustomerId, this.AccountId, closeToAccountId, transactionTag, closeReason, connection, userDefinedObjectForLogging); return(rv); }
public async static Task <AccountClose> CloseAsync(CancellationToken cancellationToken, 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(await ac.CloseAsync(cancellationToken, connection, userDefinedObjectForLogging)); }