/// <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); }
/// <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(); }