protected void DeleteButton_Click(object sender, EventArgs e)
 {
     try
     {
         DiscountManager.MarkDiscountAsDeleted(this.DiscountID);
         Response.Redirect("Discounts.aspx");
     }
     catch (Exception exc)
     {
         ProcessException(exc);
     }
 }
Beispiel #2
0
        protected void DeleteButton_Click(object sender, EventArgs e)
        {
            try
            {
                Discount discount = DiscountManager.GetDiscountById(this.DiscountId);
                if (discount != null)
                {
                    DiscountManager.MarkDiscountAsDeleted(discount.DiscountId);
                    CustomerActivityManager.InsertActivity(
                        "DeleteDiscount",
                        GetLocaleResourceString("ActivityLog.DeleteDiscount"),
                        discount.Name);
                }

                Response.Redirect("Discounts.aspx");
            }
            catch (Exception exc)
            {
                ProcessException(exc);
            }
        }