public async Task <IActionResult> Score(int id)
        {
            var userId = User.GetUserId();
            var user   = await _userManager.FindByIdAsync(User.GetUserId());

            var thisCompletedQuiz = _db.CompletedQuizzes.Include(questions => questions.CompletedQuestions).FirstOrDefault(quiz => quiz.QuizId == id && quiz.UserId == userId);

            thisCompletedQuiz.InProgress = false;
            thisCompletedQuiz.Score      = CompletedQuiz.ScoreQuiz(thisCompletedQuiz);
            user.Points = user.Points + (thisCompletedQuiz.Score) / 10;
            _db.SaveChanges();
            return(View(thisCompletedQuiz));
        }