protected void DeleteButton_Click(object sender, EventArgs e) { try { SpecificationAttributeManager.DeleteSpecificationAttribute(this.SpecificationAttributeID); Response.Redirect("SpecificationAttributes.aspx"); } catch (Exception exc) { ProcessException(exc); } }
protected void DeleteButton_Click(object sender, EventArgs e) { try { SpecificationAttribute specificationAttribute = SpecificationAttributeManager.GetSpecificationAttributeById(this.SpecificationAttributeId); if (specificationAttribute != null) { SpecificationAttributeManager.DeleteSpecificationAttribute(this.SpecificationAttributeId); CustomerActivityManager.InsertActivity( "DeleteSpecAttribute", GetLocaleResourceString("ActivityLog.DeleteSpecAttribute"), specificationAttribute.Name); } Response.Redirect("SpecificationAttributes.aspx"); } catch (Exception exc) { ProcessException(exc); } }