Example #1
0
 public int GetCountOfGradesByReviewer(int reviewer, int grade)
 {
     if (!(grade > 0 && grade < 6))
     {
         throw new ArgumentException("The grade has to be between 1-5");
     }
     return(movieRatingRepository.GetCountOfGradesByReviewer(reviewer, grade));
 }