Beispiel #1
0
 public T Ajouter(T nouveau)
 {
     try
     {
         T retour = contexte.Set <T>().Add(nouveau);
         contexte.SaveChanges();
         return(retour);
     }
     catch (Exception)
     {
         throw;
     }
 }