コード例 #1
0
        public JsonResult GetNewsVotes(Int32 Id)
        {
            var votes = MagazineService.GetSplittedNewsVotes(Id);
            var user  = UserService.GetCurrentUser();

            if (votes == null)
            {
                return(Json("Lo sentimos, no pudimos conseguir los votos de esta publicación.", JsonRequestBehavior.AllowGet));
            }

            return(Json(votes, JsonRequestBehavior.AllowGet));
        }