Esempio n. 1
0
 public static List <Ristourne> Liste(String query)
 {
     try
     {
         return(RistourneDao.getListRistourne(query));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de retourner la liste des élements", ex);
     }
 }
Esempio n. 2
0
 public static bool Delete(long id)
 {
     try
     {
         return(RistourneDao.getDeleteRistourne(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
Esempio n. 3
0
 public Ristourne Insert()
 {
     try
     {
         return(RistourneDao.getAjoutRistourne(ristourne));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
Esempio n. 4
0
 public bool Update()
 {
     try
     {
         return(RistourneDao.getUpdateRistourne(ristourne));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
Esempio n. 5
0
 public static Ristourne One(long id)
 {
     try
     {
         return(RistourneDao.getOneRistourne(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }