Пример #1
0
        public async Task <IActionResult> GetQuestions(string questionId)
        {
            if (string.IsNullOrEmpty(questionId))
            {
                return(BadRequest());
            }

            var response = await _quizManager.GetQuestionByTopicIdAsync(questionId);

            if (response != null)
            {
                return(new OkObjectResult(response));
            }

            return(NotFound());
        }