Ejemplo n.º 1
0
        private async Task BackupRestoreAPIM()
        {
            Console.WriteLine("[1]      Backup APIM");
            Console.WriteLine("[2]      Restore APIM");
            Console.WriteLine("[3]      Go Back");
            string option = Console.ReadLine();

            option = option.ToUpper();

            switch (option)
            {
            case "1":
                await migrationService.BackupAPIM();

                userSetup = true;
                Console.WriteLine("Done...");
                break;

            case "2":
                Console.WriteLine("What is the backup name:");
                string backupName = Console.ReadLine();
                await migrationService.RestoreAPIM(backupName);

                Console.WriteLine("Done...");
                break;

            case "3":
                PrintMainMenu();
                break;

            default:
                PrintMainMenu();
                break;
            }
        }