/// <summary> /// Create a new campaign item object and persist it into the database. /// </summary> /// <param name="campaignItem">The campaign item object</param> public CampaignItem AddCampaignItem(CampaignItem campaignItem) { // Persist the object into the database campaignItem.Save(); // Return the new object with the new identifier (AUTO) return(campaignItem); }
/// <summary> /// Update a campaign item object and persist changes into the database /// </summary> /// <param name="campaignItem"></param> public void UpdateCampaignItem(CampaignItem campaignItem) { // Persist the object into the database campaignItem.Save(); }