Пример #1
0
        private void Del_ByID(HttpContext context)
        {
            String   jSonString = "";
            int      IDAlbums   = Convert.ToInt32(context.Request.QueryString["IDAlbums"]);
            AlbumsBO albumsBO   = new AlbumsBO();
            int      ret        = albumsBO.Del_ByID(IDAlbums);

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