Beispiel #1
0
        /// <summary>
        /// ChangeContentRating
        /// </summary>
        /// <param name="contentId"></param>
        /// <param name="contextId"></param>
        /// <param name="rating"></param>
        public ServiceResponse ChangeContentRating(int contentId, int contextId, int rating)
        {
            ServiceResponse changeContentRatingResponse = new ServiceResponse();

            try
            {
                SetContext();
                _contentManager.ChangeContentRating(contentId, (ContextEnum)contextId, rating);
            }
            catch (Exception ex)
            {
                HandleError(ex, changeContentRatingResponse);
            }
            return(changeContentRatingResponse);
        }