예제 #1
0
 public async Task <IEnumerable <QuestionDto> > GetQuestions()
 {
     return(await _QuestionManager.GetQuestions());
 }
예제 #2
0
        public IEnumerable <QuestionDto> GetQuestions()
        {
            var questions = _questionManager.GetQuestions();

            return(questions);
        }
예제 #3
0
        // GET api/<controller>
        public async Task <IEnumerable <API.Models.Question> > Get()
        {
            var questions = await _questionManager.GetQuestions().ConfigureAwait(false);

            return(questions.Select(c => _questionMapper.ToAnyEntity(c)).ToList());
        }