public string ModCre(int num, string Nom, string Rue, string CP, string Ville, string zip, string Tel, string Contrat)
 {
     using (var connexion = connect.ConnexionFileBDD())
     {
         LC = SelectAllCre();
         if (LC.Count() != 0)
         {
             for (int i = 0; i < LC.Count; i++)
             {
                 if (LC[i].NUM_CRE == num)
                 {
                     var CurrentCre = new CREANCIER()
                     {
                         NOM_CRE      = Nom,
                         RUE_CRE      = Rue,
                         POSTAL_CRE   = CP,
                         VILLE_CRE    = Ville,
                         ZIP_CRE      = zip,
                         TEL_CRE      = Tel,
                         CONTRAT1_CRE = Contrat,
                     };
                     connexion.Update(CurrentCre);
                 }
             }
         }
     }
     return("Le créancier " + Nom + " a été Modifié.");
 }
 public string AddCre(string Nom, string Rue, string CP, string Ville, string zip, string Tel, string Contrat)
 {
     LC = SelectAllCre();
     if (LC.Count() != 0)
     {
         for (int i = 0; i < LC.Count(); i++)
         {
             if (LC[i].NOM_CRE == Nom)
             {
                 return("Vous ne pouvez pas ajouter deux fois le même créancier.");
             }
         }
         using (var connexion = connect.ConnexionFileBDD())
         {
             var CurrentCre = new CREANCIER()
             {
                 NOM_CRE      = Nom,
                 RUE_CRE      = Rue,
                 POSTAL_CRE   = CP,
                 VILLE_CRE    = Ville,
                 ZIP_CRE      = zip,
                 TEL_CRE      = Tel,
                 CONTRAT1_CRE = Contrat,
             };
             connexion.Insert(CurrentCre);
         }
         return("Le créancier " + Nom + " a été enregistré.");
     }
     return("Aucun créancier trouvé, voir avec le géstionnaire de la base de donnée.");
 }