public ActionResult GetAllListPosts() { var current_liveposts = CommentListService.ListLivePosts(); var result = JsonConvert.SerializeObject(current_liveposts); return(Json(result)); }
// GET: Comment public ActionResult Index() { var current_liveposts = CommentListService.ListLivePosts(); ViewData["Live"] = current_liveposts; return(View()); }