Пример #1
0
 public async Task <ActionResult <Unit> > Create(Create.Commmand command)
 {
     return(await _mediator.Send(command));
 }
Пример #2
0
 public async Task <ActionResult <Unit> > Create(Create.Commmand commmand) //[FromBody] no need because [ApiController]
 {
     return(await Mediator.Send(commmand));
 }