Пример #1
0
 public static List <Remise> Liste(String query)
 {
     try
     {
         return(RemiseDao.getListRemise(query));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de retourner la liste des élements", ex);
     }
 }
Пример #2
0
 public static bool Delete(long id)
 {
     try
     {
         return(RemiseDao.getDeleteRemise(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
Пример #3
0
 public Remise Insert()
 {
     try
     {
         return(RemiseDao.getAjoutRemise(remise));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
Пример #4
0
 public bool Update()
 {
     try
     {
         return(RemiseDao.getUpdateRemise(remise));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
Пример #5
0
 public static Remise One(long id)
 {
     try
     {
         return(RemiseDao.getOneRemise(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }