Ejemplo n.º 1
0
 public static bool Delete(long id)
 {
     try
     {
         return(CreneauDao.getDeleteCreneau(id));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de supprimer cette enregistrement", ex);
     }
 }
Ejemplo n.º 2
0
 public bool Update()
 {
     try
     {
         return(CreneauDao.getUpdateCreneau(creneau));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de modifier cette enregistrement", ex);
     }
 }
Ejemplo n.º 3
0
 public Creneau Insert()
 {
     try
     {
         return(CreneauDao.getAjoutCreneau(creneau));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'inserer cette enregistrement", ex);
     }
 }
Ejemplo n.º 4
0
 public static Creneau One(Personnel pers, DateTime date, DateTime heureDebut, DateTime heureFin)
 {
     try
     {
         return(CreneauDao.getOneCreneau(pers, date, heureDebut, heureFin));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }
Ejemplo n.º 5
0
 public static Creneau One(Personnel pers)
 {
     try
     {
         return(CreneauDao.getOneCreneau(pers));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible d'atteindre l'enregistrement", ex);
     }
 }
Ejemplo n.º 6
0
 public static List <Creneau> Liste(String query)
 {
     try
     {
         return(CreneauDao.getListCreneau(query));
     }
     catch (Exception ex)
     {
         throw new Exception("Impossible de retourner la liste des élements", ex);
     }
 }