コード例 #1
0
        public void Menu()
        {
            Console.WriteLine("---------------------------------");
            Console.WriteLine("Welcome to the EmpleaDO Migration Tool");
            Console.WriteLine("---------------------------------");

            Console.WriteLine("---------------------------------");
            Console.WriteLine("Where you wanna test (Transfer Data From Production to Beta)?");
            Console.WriteLine("---------------------------------");
            Console.WriteLine("1- Local");
            Console.WriteLine("2- Azure");

            string  input = Console.ReadLine();
            int     selectedOption;
            Migrate migrate = new Migrate(_config, _mapper);

            if (int.TryParse(input, out selectedOption))
            {
                switch (selectedOption)
                {
                case 1:
                    migrate.FromProductionToBeta();
                    break;

                case 2:

                    break;
                }
            }
            else
            {
                Console.WriteLine("Debe ser una opcion valida.");
            }
        }