Пример #1
0
        public async Task <Question> GetQuestionWithAnswer(int id)
        {
            var question = await QuestionRepo.GetAsync(id);

            question.Answers = await AnswersRepo.FindBy(a => a.QuestionId == id).ToListAsync();

            return(question);
        }