Ejemplo n.º 1
0
        public ActionResult GetAllListPosts()
        {
            var current_liveposts = CommentListService.ListLivePosts();
            var result            = JsonConvert.SerializeObject(current_liveposts);

            return(Json(result));
        }
Ejemplo n.º 2
0
        // GET: Comment
        public ActionResult Index()
        {
            var current_liveposts = CommentListService.ListLivePosts();

            ViewData["Live"] = current_liveposts;
            return(View());
        }