Exemple #1
0
        public void ProcessRequest(HttpContext context)
        {
            string json = new StreamReader(context.Request.InputStream).ReadToEnd();

            PRDetail modal = PRDetail.Deserialize <PRDetail>(json);

            string msg = String.Format("{0}: Delete: {1}", modal.ID == 1 ? "No" : "OK", modal.Description);

            context.Response.ContentType = "text/plain";
            context.Response.Write(msg);
        }