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