Example #1
0
        //
        // GET: /Comment/

        public ActionResult AddComment(Guid Post_Id)
        {
            var list = CommentModel.GetAllComments(Post_Id);

            ViewData["List"] = list;
            ViewData["ID"]   = Post_Id;
            return(PartialView());
        }
Example #2
0
 public ActionResult UserComments(string name)
 {
     ViewData["name"] = name;
     if (Request.IsAjaxRequest())
     {
         return(PartialView("UserComments", CommentModel.GetAllComments(name)));
     }
     return(View(CommentModel.GetAllComments(name)));
 }