public void GetUserPostsById(HttpContext context) { ZwJson zwJson = new ZwJson(); PostsService postsService = new PostsService(_session); UserPostsService userPostsService = new UserPostsService(_session); var postid = context.Request.Params["postid"]; var list2 = postsService.FindById2(postid); list2.ReplyCount = list2.UserPostses.Count; zwJson.Other = list2.ReplyCount.ToString(); postsService.SaveOrUpdate(list2); Posts posts = new Posts() { Id = postid }; var list = userPostsService.FindById(posts); zwJson.IsSuccess = true; zwJson.Data = list; zwJson.JsExecuteMethod = "ajax_GetUserPostsById"; context.Response.Write(_jss.Serialize(zwJson)); }