Example #1
0
        // 4. CreateDevTeams
        private void CreateNewTeams()
        {
            Console.Clear();
            DevTeamContent newTeam = new DevTeamContent();

            //Names

            Console.WriteLine("Enter the new DevTeam Name");
            newTeam.TeamName = Console.ReadLine();

            //Number
            Console.WriteLine("Enter the Number for the Team");
            newTeam.TeamNumber = int.Parse(Console.ReadLine());
            // Console.Readline does not read numbers only words so use Parse to convert it

            // Add DevTeam to the Repo
            _devTeamRepo.AddContentToList(newTeam);
        }