예제 #1
0
        private int getCargoCapacity()
        {
            ConsoleMsg.CargoCapacity();
            string cargoCapacity = Console.ReadLine();

            while (!ValidationInput.CheckCapacity(cargoCapacity))
            {
                ConsoleMsg.CostumerName();
                cargoCapacity = Console.ReadLine();
            }

            int result;

            int.TryParse(cargoCapacity, out result);
            return(result);
        }