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); } }