Beispiel #1
0
        static void DeleteDevTeam()
        {
            ViewAllDevTeams();

            Console.Write("Enter The Team Id Number For The Team You Want To Remove: ");
            var devTeamId = int.Parse(Console.ReadLine());

            var wasDeleted = _devTeamRepo.DeleteDevTeamById(devTeamId);

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