public static List <TrancheHoraire> Liste(String query) { try { return(TrancheHoraireDao.getListTrancheHoraire(query)); } catch (Exception ex) { throw new Exception("Impossible de retourner la liste des élements", ex); } }
public static bool Delete(long id) { try { return(TrancheHoraireDao.getDeleteTrancheHoraire(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public TrancheHoraire Insert() { try { return(TrancheHoraireDao.getAjoutTrancheHoraire(tranche)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
public bool Update() { try { return(TrancheHoraireDao.getUpdateTrancheHoraire(tranche)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public static TrancheHoraire One(long id) { try { return(TrancheHoraireDao.getOneTrancheHoraire(id)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }