예제 #1
0
        public IActionResult GetAll([FromQuery(Name = "quiz")] int quizId)
        {
            var questions = questionRepository.GetAllByQuizId(quizId);
            var result    = questions
                            .Select(question => addAnswersToQuestions(question))
                            .ToList();

            return(Ok(result));
        }