changed GetById
This commit is contained in:
parent
cac3cd5ea4
commit
7f482cac95
3 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ public class CompletionRepository : ICompletionRepository
|
|||
|
||||
public async Task<Completion?> GetByIdAsync(int id)
|
||||
{
|
||||
return await _context.Completions.FirstOrDefaultAsync(c => c.Id == id);
|
||||
return await _context.Completions.FindAsync(id);
|
||||
}
|
||||
|
||||
public async Task<IEnumerable<Completion>> GetAllAsync()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue