public async Task <CreateJobTaskResult> CreateJobTask([FromBody] CreateJobTaskCommand cmd) { return(await _mediator.Send(cmd, base.HttpContext.RequestAborted)); }
public async Task <IActionResult> Create([FromBody] CreateJobTaskCommand command) { var id = await Mediator.Send(command); return(CreatedAtAction(nameof(Get), new { id }, new { id })); }