public static List <Compte> Liste(String query) { try { return(CompteDao.getListCompte(query)); } catch (Exception ex) { throw new Exception("Impossible de retourner la liste des élements", ex); } }
public static bool Delete(long id) { try { return(CompteDao.getDeleteCompte(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public Compte Insert() { try { return(CompteDao.getAjoutCompte(compte)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
public bool Update() { try { return(CompteDao.getUpdateCompte(compte)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public static Compte One(long id) { try { return(CompteDao.getOneCompte(id)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }