public override bool Delete(long storeId, long entityId)
        {
            Campaign campaign = CampaignService.Instance.Get(storeId, entityId);

            return(campaign.Delete());
        }
        public new void TearDown()
        {
            base.TearDown();

            _campaign.Delete();
        }
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     Campaign.Delete(int.Parse(lblID.Text));
     Response.Redirect(Request.Url.PathAndQuery, false);
 }
Exemple #4
0
 /// <summary>
 /// Delete a campaign object and persist changes into the database
 /// </summary>
 /// <param name="campaign"></param>
 public void DeleteCampaign(Campaign campaign)
 {
     // Remove the object into the database
     campaign.Delete();
 }