public void Update(T entity) { _context.Entry(entity).State = Microsoft.EntityFrameworkCore.EntityState.Modified; }