public void Del_ByCode_ByIDLang(HttpContext context) { CategoryLevel1BO aCategoryLevel1BO = new CategoryLevel1BO(); String jSonString = ""; string Code = context.Request.QueryString["Code"].ToString(); int IDLang = !string.IsNullOrEmpty(context.Request.QueryString["IDLang"].ToString()) ? int.Parse(context.Request.QueryString["IDLang"]) : 1; int ret = aCategoryLevel1BO.Del_ByCode_ByIDLang(Code, IDLang); if (ret > 0) { jSonString = "{\"status\": \"success\"}"; } if (ret <= 0) { jSonString = "{\"status\":\"error\" ,\"message\":\"" + ret.ToString() + "\"}"; } context.Response.Write(jSonString); }