public async Task Handle(InvestmentSettledIntegrationEvent @event) { var request = new CreateTraceCommand( @event.InvestmentId, @event.ExchangeId, @event.BaseCurrency, @event.QuoteCurrency, new string[] { } ); await this._mediator.Send(request); }
public async Task <IActionResult> Create(CreateTraceCommand command) { return(Ok(await Mediator.Send(command))); }