Пример #1
0
 public static List <Depot> Liste(String query)
 {
     try
     {
         return(DepotDao.getListDepot(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(DepotDao.getDeleteDepot(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
Пример #3
0
 public Depot Insert()
 {
     try
     {
         return(DepotDao.getAjoutDepot(depot));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
Пример #4
0
 public bool Update()
 {
     try
     {
         return(DepotDao.getUpdateDepot(depot));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
Пример #5
0
 public static Depot One(long id)
 {
     try
     {
         return(DepotDao.getOneDepot(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }