// Edit existing teams public bool EditExistingTeam(int teamNumber, DevTeam newTeamInfo) { // Find the team by ID var oldTeam = GetTeamByID(teamNumber); // Update the team's info if the team was found in the list if (oldTeam != null) { oldTeam.TeamMembers = newTeamInfo.TeamMembers; oldTeam.TeamName = newTeamInfo.TeamName; oldTeam.TeamIDNumber = newTeamInfo.TeamIDNumber; return(true); } else { return(false); } }
// Add a new team public void AddNewTeam(DevTeam newTeam) { _listOfDeveloperTeams.Add(newTeam); }