Ejemplo n.º 1
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Survey = await _databaseLogic.GetSurvey(id);

            await _databaseLogic.GetAllQuestions();

            if (Survey == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> OnGetAsync(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            Answer = await _databaseLogic.GetAnswer(id);

            Questions = await _databaseLogic.GetAllQuestions();

            if (Answer == null)
            {
                return(NotFound());
            }
            return(Page());
        }
Ejemplo n.º 3
0
 public async Task OnGetAsync()
 {
     Questions = await _databaseLogic.GetAllQuestions();
 }
Ejemplo n.º 4
0
        public async Task <IActionResult> OnGetAsync()
        {
            Questions = await _databaseLogic.GetAllQuestions();

            return(Page());
        }
Ejemplo n.º 5
0
        public async Task OnGetAsync()
        {
            Answers = await _databaseLogic.GetAllAnswers();

            await _databaseLogic.GetAllQuestions();
        }