public void Handle(string input, ParkingLotManager parkingLotManager) { var tokens = input.Split(' '); if (tokens.Length == 2) { var slots = parkingLotManager.GetSlotNumbersOfCarByColor(tokens[1]); Console.WriteLine(slots.Any() ? string.Join(", ", slots) : "Not found"); } }