예제 #1
0
        //si
        public bool AgregarProducto(Entidad producto)
        {
            DAOProducto objDataBase = new DAOProducto();

            try
            {
                //1-Agregar el producto asociado a esa categoria
                objDataBase.AgregarProducto(producto);

                //2-Agregar el detalle_producto asociado al producto y a la marca
                objDataBase.AgregarDetalleProducto(producto);
            }
            catch (ExcepcionProducto e)
            {
                throw e;
            }
            catch (Exception e)
            {
                throw e;
            }
            return(true);
        }