// // GET: /Comment/ public ActionResult AddComment(Guid Post_Id) { var list = CommentModel.GetAllComments(Post_Id); ViewData["List"] = list; ViewData["ID"] = Post_Id; return(PartialView()); }
public ActionResult UserComments(string name) { ViewData["name"] = name; if (Request.IsAjaxRequest()) { return(PartialView("UserComments", CommentModel.GetAllComments(name))); } return(View(CommentModel.GetAllComments(name))); }