//Modifier Entreprise static public bool modifierEntreprise(Entreprise Entreprise, List <int> idsFormationsRecherchees, List <int> idsInteretsRecherches, List <int> idsTechnologiesRecherchees) { bool modifie = RequeteEntreprise.modifierEntreprise(Entreprise); if (modifie) { RequeteEntreprise.deleteDomaineRecherche(Entreprise.Id); if (idsInteretsRecherches != null) { foreach (int i in idsInteretsRecherches) { RequeteEntreprise.ajouterInteretRecherche(Entreprise.Id, i); } } if (idsFormationsRecherchees != null) { foreach (int i in idsFormationsRecherchees) { RequeteEntreprise.ajouterFormationRecherchee(Entreprise.Id, i); } } if (idsTechnologiesRecherchees != null) { foreach (int i in idsTechnologiesRecherchees) { RequeteEntreprise.ajouterTechnologieRecherche(Entreprise.Id, i); } } } return(modifie); }
//Ajouter Entreprise //Ajouter Entreprise static public bool ajouterEntreprise(Entreprise Entreprise, List <int> idsFormationsRecherchees, List <int> idsInteretsRecherches, List <int> idsTechnologiesRecherchees) { bool cree = false; cree = RequeteEntreprise.ajouterEntreprise(Entreprise); //ajouter les domaines recherche if (cree) { if (idsInteretsRecherches != null) { foreach (int id in idsInteretsRecherches) { RequeteEntreprise.ajouterInteretRecherche(Entreprise.Id, id); } } if (idsFormationsRecherchees != null) { foreach (int i in idsFormationsRecherchees) { RequeteEntreprise.ajouterFormationRecherchee(Entreprise.Id, i); } } if (idsTechnologiesRecherchees != null) { foreach (int i in idsTechnologiesRecherchees) { RequeteEntreprise.ajouterTechnologieRecherche(Entreprise.Id, i); } } } return(cree); }