Ejemplo n.º 1
0
        public RatingResult EvaluateRating(int numberOfReviews)
        {
            var result = new RatingResult();

            result.Rating = (int)_movie.reviews.Average(m => m.ReviewerRating);
            return(result);
        }
Ejemplo n.º 2
0
 public RatingResult EvaluateRating(int numberOfReviews)
 {
     var result = new RatingResult();
     result.Rating = (int) _movie.reviews.Average(m => m.ReviewerRating);
     return result;
 }