public void Update(Car t) { //var car = context.Cars.Find(t.CarId); //context.Cars.Attach(car); context.Entry <Car>(t).State = EntityState.Modified; }
public void Update(Seller t) { context.Entry <Seller>(t).State = EntityState.Modified; }