public ActionResult AddComment(CommentModel comment) { Customer thisUser = (Customer)Session["loggedInUser"]; Comment postComment = new Comment(); postComment.Text = comment.CommentText; postComment.ReviewId = comment.ReviewId; postComment.CustomerId = thisUser.Id; postComment.Time = DateTime.Now; custService.AddComment(postComment); List <Comment> comments = custService.GetAllComments(comment.ReviewId); return(Json(PrepareCommentModel(comments), JsonRequestBehavior.AllowGet)); }