Ejemplo n.º 1
0
        public Stock ajouter(Stock u)
        {
            if (u == null)
            {
                u = new Stock();
            }
            try
            {
                db.creerStock(u.quantite, u.codeStation, u.codePRODUIT, u.libelle, u.codeU);
            }
            catch (Exception ex)
            {
                u.libelle = ex.StackTrace;
            }

            return(u);
        }