//Build Team public void AddDevelopersToTeam(string devTeamID, string companyID) { //Find team to add developers to GetDevTeamList(); //Pick team to add developer to DevTeam newT = GetTeamByID(devTeamID); //Get Developer ID Developer newD = devRepo.GetMemberByID(companyID); //Add developer to team newT.Members.Add(newD); }
//Update public bool UpdateExistingDevTeamList(string originalTeamList, DevTeam newTeamList) { //Find member list DevTeam oldList = GetTeamByID(originalTeamList); //Update member list if (oldList != null) { oldList.DevTeamName = newTeamList.DevTeamName; oldList.DevTeamID = newTeamList.DevTeamID; return(true); } else { return(false); } }
//Delete public bool RemoveDevTeamFromList(string devTeamID) { DevTeam teamNum = GetTeamByID(devTeamID); if (teamNum == null) { return(false); } int initialCount = _listOfTeam.Count; _listOfTeam.Remove(teamNum); if (initialCount > _listOfTeam.Count) { return(true); } else { return(false); } }
//Create public void AddDevTeamsToList(DevTeam team) { _listOfTeam.Add(team); }