public static void FindBox(WareHouse facility) { Console.Write("Input box ID: "); bool correctId = int.TryParse(Console.ReadLine(), out int iD); if (correctId) { int[] storagePlace = facility.Peek(iD); if (storagePlace[0] != 0 || storagePlace[1] != 0) { Console.WriteLine("Box found on level: {0} in storage unit: {1}", storagePlace[0], storagePlace[1]); } else { Console.WriteLine("Box not found"); } } else { Console.WriteLine("Box ID was in incorrext format"); } Console.ReadKey(); }