public void Update(RegisteredVehicle vehicle) { DataContext1 context = new DataContext1(); var item = Find(vehicle.Id); item = vehicle; context.Update(item); context.SaveChanges(); }
public void Update(Category category) { DataContext1 context = new DataContext1(); var item = Find(category.Id); item = category; context.Update(item); context.SaveChanges(); }