示例#1
0
        public ActionResult VoteDown()
        {
            var json = GetJson(HttpContext.Request);

            ValidateJson(json);
            var user      = GetUserCached(json);
            var articleId = json["id"].Value <int>();

            FeedService.DownVote(user, articleId);
            return(Json(new
            {
                ok = "true"
            }));
        }
示例#2
0
 public void DownVote(int articleId)
 {
     FeedService.DownVote(CurrentUser, articleId);
 }