public void RestoreProductOnStation(Product product, string stationName) { IStation station = this.lineStations.FirstOrDefault(p => p.Name.Equals(stationName)); if (station != null) { station.AddProduct(product); } }
private bool sendProductToStation(Product product, IStation station) { bool result = false; if (station != null && product != null) { result = station.AddProduct(product); } return(result); }