public static void Load() { bool canceled = false; int containerId = SelectContainerId(out canceled); if (canceled) { return; } int transportId = TransportViewController.SelectTransportId(out canceled); if (canceled) { return; } try { var cc = new ContainerController(); var container = cc.GetById(containerId); if (container.TransportId.HasValue) { throw new HprException("Container must be unloaded first"); } cc.Move(containerId, transportId); Console.WriteLine($"Successfully loaded"); } catch (Exception ex) { Console.WriteLine(ex.Message); } }