completed QuestionRepository.cs
small readability fixes for SurveyRepository.cs
This commit is contained in:
parent
960a6ce191
commit
62facb3423
2 changed files with 23 additions and 16 deletions
|
|
@ -44,12 +44,14 @@ public class SurveyRepository : ISurveyRepository
|
|||
|
||||
public async Task<Survey?> GetWithQuestionsAsync(int surveyId)
|
||||
{
|
||||
return await _context.Surveys.Include(survey => survey.Questions).FirstOrDefaultAsync(s => s.Id == surveyId);
|
||||
return await _context.Surveys.Include(survey => survey.Questions)
|
||||
.FirstOrDefaultAsync(s => s.Id == surveyId);
|
||||
}
|
||||
|
||||
public async Task<Survey?> GetWithCompletionsAsync(int surveyId)
|
||||
{
|
||||
return await _context.Surveys.Include(survey => survey.Completions).FirstOrDefaultAsync(s => s.Id == surveyId);
|
||||
return await _context.Surveys.Include(survey => survey.Completions)
|
||||
.FirstOrDefaultAsync(s => s.Id == surveyId);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Survey>> FindByTitleAsync(string title)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue