public async Task <ActionResult <int> > Create(CreateSportCommand command) { return(await Mediator.Send(command)); }
public async Task <ActionResult <CreateSportCommandResponse> > Create([FromBody] CreateSportCommand createSportCommand) { var response = await _mediator.Send(createSportCommand); return(Ok(response)); }