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

            return(CreatedAtAction(nameof(Get), new { id }, new { id }));
        }