public IActionResult PutAutores([FromRoute] long id, [FromBody] Autor autor)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != autor.Id)
            {
                return(BadRequest());
            }

            var _autor = _autorRepository.Find(id);

            if (_autor == null)
            {
                return(NotFound());
            }

            try
            {
                _autorRepository.Update(autor);
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!_autorRepository.Exists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }