public JsonResult AddComment(string userComment, Guid id) { BirdComment comment = new BirdComment(); comment.BirdUserID = _birdUserService.FindByUserName(HttpContext.User.Identity.Name).ID; comment.BirdTweetID = id; comment.CommentContent = userComment; bool isAdded = false; try { _birdCommentService.Add(comment); isAdded = true; } catch (Exception) { isAdded = false; } return(Json(isAdded, JsonRequestBehavior.AllowGet)); }