public static List <ModePaiement> Liste(String query) { try { return(ModePaiementDao.getListModePaiement(query)); } catch (Exception ex) { throw new Exception("Impossible de retourner la liste des élements", ex); } }
public static bool Delete(long id) { try { return(ModePaiementDao.getDeleteModePaiement(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public ModePaiement Insert() { try { return(ModePaiementDao.getAjoutModePaiement(mode)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
public bool Update() { try { return(ModePaiementDao.getUpdateModePaiement(mode)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public static ModePaiement One(long id) { try { return(ModePaiementDao.getOneModePaiement(id)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }