示例#1
0
 public IActionResult Create([FromBody] CreateCommand command,
                             CancellationToken cancellationToken)
 {
     return(Ok(command));
 }
示例#2
0
 public async Task <ActionResult <Unit> > Create(CreateCommand command)
 {
     return(await Mediator.Send(command));
 }