public bool assignDriver(DeliveryEmployee em) { if (Driverless) { driver = em; return true; } return false; }
public bool addDeliveryEmployee(string firstName, string middleName, string lastName, string id, string plainTextPassword, Route r) { DeliveryEmployee a = new DeliveryEmployee(firstName, middleName, lastName, id, plainTextPassword); a.CurrentRoute = r; return addEmployee(a); }
public void removeDriver(DeliveryEmployee em) { if (driver.Equals(em)) driver = null; }