public async Task <IActionResult> SolveQuiz(Guid quizId) { SampleQuiz sample = await _context.GetSampleQuiz(quizId); SolvingQuiz quiz = SolvingQuiz.CreateFromSample(sample); await _context.AddQuizesToUser(quiz, sample, _userManager.GetUserId(User)); return(RedirectToAction("SolveQuestions", new { quizId = quiz.Id, sampleId = sample.Id })); }