public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string mesg = context.Request["mesg"]; Answer answer = new Answer(Convert.ToInt32(context.Session["cofId"]), mesg, Convert.ToInt32(context.Session["id"])); if (context.Session["id"] == null) { context.Response.Write(2); } else { if (CircleOfFriendsManager.Comments(answer) == 1) { context.Response.Write(1); } else { context.Response.Write(0); } } }