public async Task <IActionResult> Create([FromBody] Integration.Commands.Correlations.V1CreateCorrelationCommand command, CancellationToken cancellationToken) { return(this.Process(await this.Mediator.ExecuteAsync(this.Mapper.Map <Application.Commands.Correlations.V1CreateCorrelationCommand>(command), cancellationToken), (int)HttpStatusCode.Created)); }
/// <inheritdoc/> public virtual async Task <GrpcApiResult <V1Correlation> > CreateCorrelationAsync(Integration.Commands.Correlations.V1CreateCorrelationCommand command, CallContext context = default) { return(GrpcApiResult.CreateFor(await this.Mediator.ExecuteAsync(this.Mapper.Map <Application.Commands.Correlations.V1CreateCorrelationCommand>(command), context.CancellationToken))); }