public static bool Delete(long id) { try { return(CreneauDao.getDeleteCreneau(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public bool Update() { try { return(CreneauDao.getUpdateCreneau(creneau)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public Creneau Insert() { try { return(CreneauDao.getAjoutCreneau(creneau)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
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); } }
public static Creneau One(Personnel pers) { try { return(CreneauDao.getOneCreneau(pers)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }
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); } }