public async Task <ActionResult> Replace(IdentityAuthorDto dto) { await _mediator.Send(new ReplaceAuthorCommand(dto)); return(NoContent()); }
public ReplaceAuthorCommand(IdentityAuthorDto dto) => Dto = dto ?? throw new ArgumentNullException(nameof(dto));