public static List <Contenu> Liste(String query) { try { return(ContenuDao.getListContenu(query)); } catch (Exception ex) { throw new Exception("Impossible de retourner la liste des élements", ex); } }
public static bool Delete(long id) { try { return(ContenuDao.getDeleteContenu(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public Contenu Insert() { try { return(ContenuDao.getAjoutContenu(contenu)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
public bool Update() { try { return(ContenuDao.getUpdateContenu(contenu)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public static Contenu One(long id) { try { return(ContenuDao.getOneContenu(id)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }