示例#1
0
        public async Task <ActionResult> Replace(IdentityAuthorDto dto)
        {
            await _mediator.Send(new ReplaceAuthorCommand(dto));

            return(NoContent());
        }
示例#2
0
 public ReplaceAuthorCommand(IdentityAuthorDto dto) => Dto = dto ?? throw new ArgumentNullException(nameof(dto));