Пример #1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var response = await _quizManager.GetAllQuestionsAsync();

                return(new OkObjectResult(response));
            }
            catch (Exception ex)
            {
                _log.LogError($"Class = {typeof(QuestionController).Name} Exception = {ex}");
                return(BadRequest());
            }
        }