public ActionResult <IEnumerable <Paciente> > searchPacienteId(string valor, string criterio) { logger.LogInformation("Search paciente with valor {0} by user => {1}", valor, getUser()); var paciente = fundabiem.searchPaciente(valor, criterio); if (paciente.Count() == 0) { return(NotFound()); } return(Ok(paciente)); }