static bool PrintConnectionStatus() { bool result = true; if (SurveyController.CheckPoezdRu()) { Console.WriteLine("Successfully connected to poezd.ru"); } else { Console.WriteLine("Error connecting with poezd.ru"); result = false; } if (SurveyController.CheckMysqlParallaxDatabase()) { Console.WriteLine("Successfully connected to database"); } else { Console.WriteLine("Error connecting with database"); result = false; } return(result); }