private static void DeleteAllCommand() { Console.WriteLine("Deleting all..."); var controller = new CommandController(); var result = controller.DeleteAll(); Console.WriteLine(result ? "Data were deleted successfully." : "Unable to delete all."); }
private static void PopulateCommand() { var controller = new CommandController(); var result = controller.Populate(); if (result == false) { Console.WriteLine("Error occured while populating databases."); DeleteAllCommand(); } else { Console.WriteLine("Databases were populated successfully."); } }