Ejemplo n.º 1
0
        public ActionResult RemoveFromFavorites()
        {
            var json = GetJson(HttpContext.Request);

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

            FeedService.DeleteFavoriteArticle(user, articleId);

            return(Json(new
            {
                ok = "true"
            }));
        }
Ejemplo n.º 2
0
 public void RemoveFromFavorites(int articleId)
 {
     FeedService.DeleteFavoriteArticle(CurrentUser, articleId);
 }