public void Upd_Status_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"]; int Status = Convert.ToInt32(context.Request.QueryString["Status"]); ret = aCategoryLevel1BO.Upd_Status_ByCode(Status, Code); } catch (Exception ex) { jSonString = "{\"status\":\"error\" ,\"message\":\"" + ex.Message.ToString() + "\"}"; } finally { context.Response.Write(jSonString); } }