public ActionResult GetAllComments(string livePageId)
        {
            var commentsRoot = CommentListService.ListComments(livePageId);
            var result       = JsonConvert.SerializeObject(commentsRoot);

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

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

            return(Json(result));
        }
 public CommentListController()
 {
     commentList = new CommentListService();
 }