Example #1
0
 public async Task UpdateAsync(T entity)
 {
     db.Entry(entity).State = EntityState.Modified;
     await db.SaveChangesAsync();
 }