Example #1
0
        public async Task <IActionResult> RequestQuiz()
        {
            var quizQuestions = await _repo.GetQuizQuestionsAsync();

            var quizQusetionsId = new List <int>();

            foreach (var quiz in quizQuestions)
            {
                quizQusetionsId.Add(quiz.Id);
            }

            return(Ok(quizQusetionsId));
        }