public void AssignDriverToVehicle() { int driverId, vehicleId; driverId = InputDriver.CatchDriverId(); vehicleId = InputVehicle.CatchVehicleId(); StandardMessage.ValidationSummary(Company.AssignDriverToVehicle(driverId, vehicleId)); }
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(); } }
public void NotifyVehicleArrive() { int vehicleId = InputVehicle.CatchVehicleId(); StandardMessage.ValidationSummary(Company.VehicleArrive(vehicleId)); }