Beispiel #1
0
        public ActionResult RateArticle(Guid id, byte rating)
        {
            try
            {
                _resourcesCommand.RateArticle(CurrentMember.Id, id, rating);
            }
            catch (UserException ex)
            {
                ModelState.AddModelError(ex, new StandardErrorHandler());
            }

            return(Json(new JsonResponseModel()));
        }
Beispiel #2
0
 protected void RateArticle(Guid articleId, int rating)
 {
     RateResource(articleId, rating, (userId, resourceId, resourceRating) => _resourcesCommand.RateArticle(userId, resourceId, resourceRating));
 }