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" })); }
public void DownVote(int articleId) { FeedService.DownVote(CurrentUser, articleId); }