/// <summary> /// /// </summary> /// <param name="request"></param> /// <returns></returns> public object Post(CommentItem request) { var currentItem = _libraryManager.GetItemById(request.Id); return(_traktApi.SendItemComment(currentItem, request.Comment, request.Spoiler, UserHelper.GetTraktUser(request.UserId), request.Review).Result); }
/// <summary> /// /// </summary> /// <param name="request"></param> /// <returns></returns> public object Post(CommentItem request) { _logger.Info("CommentItem request received"); var currentItem = _libraryManager.GetItemById(request.Id); return _traktApi.SendItemComment(currentItem, request.Comment, request.Spoiler, UserHelper.GetTraktUser(request.UserId), request.Review).Result; }