public ActionResult PartialCreateCommnet(Comment_Object commentObject, long?carCode)
        {
            var result = new Comment_BCL().InsertOrUpdate(false, commentObject);

            if (result)
            {
                return(RedirectToAction("Index", "CarDetail", new { carCode = carCode }));
            }
            return(View(commentObject));
        }
        public JsonResult CreateComment(Guid postId)
        {
            var commentObject = new Comment_Object
            {
                PostId = postId
            };
            var result = new Comment_BCL().InsertOrUpdate(false, commentObject);

            return(Json(result ? new { rs = true } : new { rs = false }));
        }
        public ActionResult PartialCommentOfPost(Guid?postId)
        {
            var listComment = new Comment_BCL().GetByPostId(postId.GetValueOrDefault());

            return(PartialView(listComment));
        }
        public ActionResult CommentByPost(Guid?postId)
        {
            var listComment = new Comment_BCL().Top1GetByPostId(postId);

            return(PartialView(listComment));
        }