Beispiel #1
0
 public static List <Entete> Liste(String query)
 {
     try
     {
         return(EnteteDao.getListEntete(query));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de retourner la liste des élements", ex);
     }
 }
Beispiel #2
0
 public static bool Delete(long id)
 {
     try
     {
         return(EnteteDao.getDeleteEntete(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
Beispiel #3
0
 public bool Update()
 {
     try
     {
         return(EnteteDao.getUpdateEntete(entete));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
Beispiel #4
0
 public Entete Insert()
 {
     try
     {
         return(EnteteDao.getAjoutEntete(entete));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
Beispiel #5
0
 public static Entete One(Creneau creneau, DateTime date)
 {
     try
     {
         return(EnteteDao.getOneEntete(creneau, date));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }
Beispiel #6
0
 public static Entete One(long id)
 {
     try
     {
         return(EnteteDao.getOneEntete(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }