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); }
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); }