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

            return(Ok(response));
        }