public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string obj = context.Request["obj"]; TypeModel model = JsonConvert.DeserializeObject <TypeModel>(obj); context.Response.Write(bll.AddType(model)); }