public IEnumerable <Entreprise> SearchEntreprises([FromQuery] string searchTerm) { if (!String.IsNullOrEmpty(searchTerm)) { return(_formationService.GetEntreprises().Where(i => i.Nom.Contains(searchTerm))); } else { return(new List <Entreprise>()); } }