public Task <AsyncTaskResult> HandleAsync(AccountValidatePassedConfirmCompletedEvent evnt) { return(_commandService.SendAsync(new AddTransactionPreparationCommand( evnt.TransactionInfo.SourceAccountId, evnt.AggregateRootId, TransactionType.TransferTransaction, PreparationType.DebitPreparation, evnt.TransactionInfo.Amount))); }
public async Task HandleAsync(AccountValidatePassedConfirmCompletedEvent evnt) { await _commandService.SendAsync(new AddTransactionPreparationCommand( evnt.TransactionInfo.SourceAccountId, evnt.AggregateRootId, TransactionType.TransferTransaction, PreparationType.DebitPreparation, evnt.TransactionInfo.Amount) { Id = evnt.Id, Items = evnt.Items }); }