示例#1
0
        private void Del_ByCode(HttpContext context)
        {
            AlbumsBO albumsBO   = new AlbumsBO();
            String   jSonString = "";
            string   Code       = context.Request.QueryString["Code"];
            int      ret        = albumsBO.Del_ByCode(Code);

            if (ret != 0)
            {
                jSonString = "{\"status\": \"success\"}";
            }
            if (ret == 0)
            {
                jSonString = "{\"status\":\"error|" + ret + "\"}";
            }
            context.Response.Write(jSonString);
        }