예제 #1
0
 public void CompleteQuiz(Guid quizId)
 {
     Quizzes.ForEach(q =>
     {
         if (q.Id == quizId)
         {
             q.IsCompleted = true;
         }
     });
 }
예제 #2
0
 public void AddQuizPoint(Guid quizId)
 {
     Quizzes.ForEach(q =>
     {
         if (q.Id == quizId)
         {
             q.Points++;
         }
     });
 }