private void Clear(HttpContext context) { if (this.productId <= 0) { throw new HidistroAshxException("错误的数据编号"); } ProductHelper.ClearRelatedProducts(this.productId); base.ReturnSuccessResult(context, "操作成功!", 0, true); }
private void btnClear_Click(object sender, System.EventArgs e) { ProductHelper.ClearRelatedProducts(this.productId); base.Response.Redirect(System.Web.HttpContext.Current.Request.Url.ToString(), true); }