void IRepository <Customer> .Edit(Customer entity) { db.Entry(entity).State = EntityState.Modified; db.SaveChanges(); }
public void Edit(Customer entity) { db.Entry(entity).State = EntityState.Modified; db.SaveChanges(); }