public async Task <IActionResult> searchAutores()
 {
     try
     {
         string term  = HttpContext.Request.Query["term"].ToString();
         var    names = (await _autorServico.FindAllAsync(p => p.Nome.Contains(term, StringComparison.OrdinalIgnoreCase))).Select(x => x.Nome).ToArray();
         return(Json(names));
     }
     catch
     {
         return(BadRequest());
     }
 }