Пример #1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Answer = await _databaseLogic.GetAnswer(id);

            await _databaseLogic.GetAllQuestions();

            Question = Answer.Question;


            if (Answer == null)
            {
                return(NotFound());
            }
            return(Page());
        }