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