public ReplaceBookCommand(IdentityBookDto bookDto) => BookDto = bookDto ?? throw new ArgumentNullException(nameof(bookDto));
public async Task <ActionResult> Replace(IdentityBookDto dto) { await _mediator.Send(new ReplaceBookCommand(dto)); return(NoContent()); }