Example #1
0
        public Produit ajouter(Produit u)
        {
            if (u == null)
            {
                u = new Produit();
            }
            try
            {
                db.creerProduit(u.designation, u.libelle, u.prix, u.unite_mesure, u.codeU);
            }
            catch (Exception ex)
            {
                u.designation = ex.StackTrace;
            }

            return(u);
        }