Ejemplo n.º 1
0
        public async Task <IActionResult> GetAllQuestions()
        {
            try
            {
                var questions = await _questionManager.GetAllAsync();

                if (questions == null)
                {
                    return(NotFound());
                }

                return(Ok(questions));
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex.Message));
            }
        }