public static bool Insert(Planning planning) { try { return(PlanningDAO.getInsert(planning)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static Planning getPlanningForJoursOuvres(JoursOuvres jour, DateTime date) { try { return(PlanningDAO.setPlanning(jour, date)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static Planning OneByDateEmploye(long employe, DateTime date, DateTime heure) { try { return(PlanningDAO.getOneByDateEmploye(employe, date, heure)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static Planning OneByDateEmploye(long employe, long tranche, DateTime dateDebut, DateTime dateFin) { try { return(PlanningDAO.getOneByDateEmploye(employe, tranche, dateDebut, dateFin)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static Planning OneById(int id) { try { return(PlanningDAO.getOneById(id)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public static List <Planning> List(string query, string adresse) { try { return(PlanningDAO.getList(query, adresse)); } catch (Exception ex) { throw new Exception(ex.Message); } }