Esempio n. 1
0
        /// <summary>
        /// Create a new product item object and persist it into the database.
        /// </summary>
        /// <param name="productItem">The campaign item object</param>
        public ProductItem AddProductItem(ProductItem productItem)
        {
            // Persist the object into the database
            productItem.Save();

            // Return the new object with the new identifier (AUTO)
            return(productItem);
        }
Esempio n. 2
0
 /// <summary>
 /// Update a product item object and persist changes into the database
 /// </summary>
 /// <param name="productItem"></param>
 public void UpdateProductItem(ProductItem productItem)
 {
     // Persist the object into the database
     productItem.Save();
 }