public void Update(T entity) { Entities.Attach(entity); dbContext.Entry(entity).State = EntityState.Modified; }
public void Delete(T entity) { Entities.Attach(entity); Entities.Remove(entity); }