public IActionResult GetAutores([FromRoute] long id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var autores = _autorRepository.Find(id); if (autores == null) { return(NotFound()); } return(Ok(autores)); }