示例#1
0
        public JsonResult LoadLD()
        {
            var like      = dao.CheckLike(WebYoutube.Session.User.Id, NewsID);
            var dis       = dao.CheckDislike(WebYoutube.Session.User.Id, NewsID);
            var countLike = dao.CountLikeNews(NewsID);
            var countDis  = dao.CountDislikeNews(NewsID);

            return(Json(new
            {
                Like = like,
                Dis = dis,
                CountLike = countLike,
                CountDis = countDis
            }, JsonRequestBehavior.AllowGet));
        }