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