コード例 #1
0
 public GenericCommandResult Update([FromBody] UpdateBooksCommand command, [FromServices] BooksHandler handler)
 {
     _logger.LogInformation("Executing api/book to update book");
     return((GenericCommandResult)handler.Handle(command));
 }
コード例 #2
0
 public GenericCommandResult Create([FromBody] CreateBooksCommand command, [FromServices] BooksHandler handler)
 {
     _logger.LogInformation("Executing api/author to post author");
     return((GenericCommandResult)handler.Handle(command));
 }