Exemplo n.º 1
0
 public async Task <ActionResult <CreateExerciseOutputModel> > Create(
     CreateExerciseCommand command)
 => await this.Send(command);
 public async Task <ExerciseDto> Create([FromBody] CreateExerciseCommand command)
 {
     return(await Mediator.Send(command));
 }
Exemplo n.º 3
0
        public async Task <IActionResult> Create([FromBody] CreateExerciseCommand command)
        {
            await Mediator.Send(command);

            return(NoContent());
        }