private void TryFindVehicles(List <Vehicle> vehicles) { if (vehicles.Count > 0) { PrintVehicles(vehicles); } else { StandardMessage.NoVehicleFound(); } }
public void EditVehicleInformations() { if (Company.NumberOfOwnedVehicles() > 0) { OwnedVehicles(); Vehicle Vehicle = new Vehicle(); Vehicle.Id = InputVehicle.CatchVehicleId(); if (Company.DoesVehicleExist(Vehicle.Id)) { CatchVehicleData(Vehicle); StandardMessage.ValidationSummary(Company.UpdateVehicleInfo(Vehicle)); } else { StandardMessage.NoVehicleFound(); } } else { StandardMessage.NoVehiclesOwned(); } }