コード例 #1
0
ファイル: ProgramUI.cs プロジェクト: CurtRoss/DevTeamProject
        // Delete Developer from Developer List
        private void DeleteExistingDeveloper()
        {
            DisplayAllDevelopers();

            //Get the ID# of the Developer they want to remove
            Console.WriteLine("Enter the ID # of the Developer you would like to Delete.");

            string inputAsString = Console.ReadLine();
            int    input         = int.Parse(inputAsString);

            //Call Delete Method
            bool wasDeleted = _developerRepo.DeleteDeveloperByIdentificationNumber(input);

            // If content was deleted, say so
            if (wasDeleted)
            {
                Console.WriteLine("The developer was successfully deleted.");
            }
            else
            {
                Console.WriteLine("The developer could not be deleted.");
            }
        }