Ejemplo n.º 1
0
        public JsonResult GetTweetComment(string id)
        {
            Guid tweetID = new Guid(id);

            BirdComment comment = _birdCommentService.GetLastOrDefault(x => x.BirdTweetID == tweetID);

            return(Json(new
            {
                BirdUserImagePath = comment.BirdUser.ImagePath,
                UserName = comment.BirdUser.UserName,
                CreatedDate = comment.CreatedDate.ToString(),
                Content = comment.CommentContent
            }, JsonRequestBehavior.AllowGet));
        }