diff --git a/SurveyLib.Infrastructure.EFCore/Repositories/CompletionRepository.cs b/SurveyLib.Infrastructure.EFCore/Repositories/CompletionRepository.cs index bc1c39c..489cd9d 100644 --- a/SurveyLib.Infrastructure.EFCore/Repositories/CompletionRepository.cs +++ b/SurveyLib.Infrastructure.EFCore/Repositories/CompletionRepository.cs @@ -16,7 +16,7 @@ public class CompletionRepository : ICompletionRepository public async Task GetByIdAsync(int id) { - return await _context.Completions.FindAsync(id); + return await _context.Completions.Include(c => c.Answers).FirstOrDefaultAsync(c => c.Id == id); } public async Task> GetAllAsync()