include AnswerVariants when getting questions by surveyid
This commit is contained in:
parent
ab331a32d9
commit
8124cfe758
1 changed files with 1 additions and 1 deletions
|
|
@ -44,6 +44,6 @@ public class QuestionRepository : IQuestionRepository
|
|||
|
||||
public async Task<IEnumerable<QuestionBase>> GetQuestionsBySurveyId(int surveyId)
|
||||
{
|
||||
return await _context.Questions.Where(q => q.SurveyId == surveyId).ToListAsync();
|
||||
return await _context.Questions.Include(q => q.AnswerVariants).Where(q => q.SurveyId == surveyId).ToListAsync();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue