Esempio n. 1
0
        static void DeleteDev()
        {
            ViewAllDevs();

            Console.Write("Enter The Id Number Of The Developer You Would Like To Remove: ");
            var devId = int.Parse(Console.ReadLine());

            var wasDeleted = _devRepo.DeleteDeveloperById(devId);

            if (wasDeleted)
            {
                Console.WriteLine("Developer Successfully Deleted! \n" +
                                  "Press any key to continue...");
                Console.ReadKey();
                Console.Clear();
                MainMenu();
            }
            else
            {
                Console.WriteLine("Oops, something went wrong! \n" +
                                  "Press any key to continue...");
                Console.ReadKey();
                Console.Clear();
                MainMenu();
            }
        }