public static List <MouvementStock> Liste(String query) { try { return(MouvementStockDao.getListMouvementStock(query)); } catch (Exception ex) { throw new Exception("Impossible de retourner la liste des élements", ex); } }
public static bool Delete(long id) { try { return(MouvementStockDao.getDeleteMouvementStock(id)); } catch (Exception ex) { throw new Exception("Impossible de supprimer cette enregistrement", ex); } }
public MouvementStock Insert() { try { return(MouvementStockDao.getAjoutMouvementStock(mouv)); } catch (Exception ex) { throw new Exception("Impossible d'inserer cette enregistrement", ex); } }
public bool Update() { try { return(MouvementStockDao.getUpdateMouvementStock(mouv)); } catch (Exception ex) { throw new Exception("Impossible de modifier cette enregistrement", ex); } }
public static MouvementStock One(long id) { try { return(MouvementStockDao.getOneMouvementStock(id)); } catch (Exception ex) { throw new Exception("Impossible d'atteindre l'enregistrement", ex); } }