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