public void Post([FromBody] AuthorDto dto, [FromServices] ICreateAuthorCommand command) { _executor.ExecuteCommand(command, dto); }
public IActionResult Post([FromBody] CreateAuthorDto dto, [FromServices] ICreateAuthorCommand command) { _executor.ExecuteCommand(command, dto); return(StatusCode(StatusCodes.Status201Created)); }