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

            return(questions);
        }
Exemplo n.º 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());
        }