Beispiel #1
0
 public async Task DeleteByIdAsync(Document doc)
 {
     db.Entry(doc).State = EntityState.Deleted;
     await db.SaveChangesAsync();
 }