Exemple #1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var results = await _quizManager.GetAllAnswersAsync();

                return(new OkObjectResult(results));
            }
            catch (Exception ex)
            {
                Console.WriteLine($"[ERROR] : {ex}");
                return(BadRequest());
            }
        }