deletions update
This commit is contained in:
parent
6f8ef78577
commit
7bbcd07c39
10 changed files with 71 additions and 22 deletions
|
|
@ -36,9 +36,9 @@ public class CompletionRepository : ICompletionRepository
|
|||
await _context.SaveChangesAsync();
|
||||
}
|
||||
|
||||
public async Task DeleteAsync(Completion entity)
|
||||
public async Task DeleteAsync(int id)
|
||||
{
|
||||
_context.Completions.Remove(entity);
|
||||
await _context.Completions.Where(c => c.Id == id).ExecuteDeleteAsync();
|
||||
await _context.SaveChangesAsync();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue