public async Task Update(T entity) { //_context.Entry(entity).State = EntityState.Modified; _context.Update(entity); await SaveAsync(); }