private string getOwnerName() { ConsoleMsg.CostumerName(); string ownersName = Console.ReadLine(); while (!ValidationInput.CheckOwnersName(ownersName)) { ConsoleMsg.CostumerName(); ownersName = Console.ReadLine(); } return(ownersName); }
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); }