fix: Update instead of re-fill
This commit is contained in:
@@ -54,7 +54,12 @@ namespace CarManagerV2
|
||||
|
||||
public bool IsChanged(Car other)
|
||||
{
|
||||
return make != other.make || model != other.model || year != other.year || color != other.color || mileage != other.mileage || price != other.price;
|
||||
return make != other.make || model != other.model || year != other.year || color != other.color || mileage != other.mileage || price != other.price || other.color != color;
|
||||
}
|
||||
|
||||
public Car Clone()
|
||||
{
|
||||
return new Car(id, make, model, year, color, mileage, price);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user