public async Task <IEnumerable <QuestionDto> > GetQuestions() { return(await _QuestionManager.GetQuestions()); }
public IEnumerable <QuestionDto> GetQuestions() { var questions = _questionManager.GetQuestions(); return(questions); }
// 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()); }