예제 #1
0
 public ReplaceBookCommand(IdentityBookDto bookDto) => BookDto = bookDto ?? throw new ArgumentNullException(nameof(bookDto));
예제 #2
0
        public async Task <ActionResult> Replace(IdentityBookDto dto)
        {
            await _mediator.Send(new ReplaceBookCommand(dto));

            return(NoContent());
        }