Exemple #1
0
 public static List <Dictionnaire> Liste(String query)
 {
     try
     {
         return(DictionnaireDao.getListDictionnaire(query));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de retourner la liste des élements", ex);
     }
 }
Exemple #2
0
 public static bool Delete(long id)
 {
     try
     {
         return(DictionnaireDao.getDeleteDictionnaire(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
Exemple #3
0
 public Dictionnaire Insert()
 {
     try
     {
         return(DictionnaireDao.getAjoutDictionnaire(dictionnaire));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
Exemple #4
0
 public bool Update()
 {
     try
     {
         return(DictionnaireDao.getUpdateDictionnaire(dictionnaire));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
Exemple #5
0
 public static Dictionnaire One(long id)
 {
     try
     {
         return(DictionnaireDao.getOneDictionnaire(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }