public async Task <IActionResult> OnGetAsync(string BibleId, int QuizId) { this.BibleId = await Bible.GetValidPBEBibleIdAsync(_context, BibleId); // Let's grab the Quiz Object with Stats Quiz = await _context.QuizGroupStats.FindAsync(QuizId); if (Quiz == null) { return(RedirectToPage("/error", new { errorMessage = "That's Odd... We were unable to find this Quiz" })); } // Populate Basic Quiz Info _ = await Quiz.AddQuizPropertiesAsync(_context, BibleId); _ = await Quiz.AddDetailedQuizStatsAsync(_context, BibleId); return(Page()); }