//[ValidateAntiForgeryToken] public ActionResult CreateComment(string model, string postId) { var name = this.User.Identity.Name; var userLogged = _userService.GetUserByUserName(name); var PostId = int.Parse(postId); var CommentOfDescription = model; _postService.AddCommentToPost(PostId, userLogged, CommentOfDescription); return(Json("success", JsonRequestBehavior.AllowGet)); }