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