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