make GetCompletionById return answers included (btw maybe it's not necessary)
This commit is contained in:
parent
7d47ab9e60
commit
b4e260998d
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ public class CompletionRepository : ICompletionRepository
|
|||
|
||||
public async Task<Completion?> 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<IEnumerable<Completion>> GetAllAsync()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue