Esempio n. 1
0
        public async Task AddUserKeywordRatingAsync(UserRating userRating)
        {
            var contributionRating = userRating.ReviewScore * 10;
            var ratingEntity       = new RatingEntity
            {
                Username           = userRating.Username,
                ContributionRating = contributionRating,
                Keyword            = userRating.Keyword,
            };

            await SetExpertSolvedCasesAsync(userRating.Username);

            await _ratingRepository.AddOrUpdateRatingAsync(ratingEntity);
        }