public void Upd_Disable_ByCode(HttpContext context) { int ret = -1; String jSonString = ""; try { CategoryLevel1BO aCategoryLevel1BO = new CategoryLevel1BO(); List<CategoryLevel1> listCategoryLevel1 = new List<CategoryLevel1>(); string Code = context.Request.QueryString["Code"]; bool Disable = Convert.ToBoolean(context.Request.QueryString["Disable"]); ret = aCategoryLevel1BO.Upd_Disable_ByCode(Disable, Code); } catch (Exception ex) { jSonString = "{\"status\":\"error\" ,\"message\":\"" + ex.Message.ToString() + "\"}"; } finally { context.Response.Write(jSonString); } }