예제 #1
0
        public void Del_ByCode(HttpContext context)
        {
            CategoryLevel1BO aCategoryLevel1BO = new CategoryLevel1BO();
            String jSonString = "";
            string Code = context.Request.QueryString["Code"].ToString();
            int ret = aCategoryLevel1BO.Del_ByCode(Code);

            if (ret > 0)
            { jSonString = "{\"status\": \"success\"}"; }

            if (ret <= 0)
            { jSonString = "{\"status\":\"error\" ,\"message\":\"" + ret.ToString() + "\"}"; }

            context.Response.Write(jSonString);
        }