Merge branch 'unstable' into 'main'
include AnswerVariants when getting questions by surveyid See merge request internship-2025/survey-webapp/surveylib!13
This commit is contained in:
commit
eb48f28d66
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