public async Task <IActionResult> OnGetAsync(int?id) { if (id == null) { return(NotFound()); } Question = await _databaseLogic.GetQuestion(id); await _databaseLogic.GetAllAnswers(); if (Question == null) { return(NotFound()); } return(Page()); }
public async Task OnGetAsync() { Answers = await _databaseLogic.GetAllAnswers(); await _databaseLogic.GetAllQuestions(); }