Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void Execute(IDBAccess <Vehicle> database) { int num = InputHelper.GetValidIntegerInput("Enter ID of vehicle to delete: "); Vehicle v = database.GET(num); InputHelper.GetValidConfirmationInput($"Vehicle: {v.LicensePlate}, [{v.YearBuilt}]\nAre you sure you want to remove vehicle {v.VehicleId}? (y/n): "); database.DELETE(num); }