Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
        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));
        }