public bool UpdateExistingTeams(string originalTeam, DevTeams newteam) { DevTeams oldTeam = GetTeamByName(originalTeam); if (oldTeam != null) { oldTeam.TeamName = newteam.TeamName; oldTeam.TeamId = newteam.TeamId; return(true); } else { return(false); } }
public bool AddDeveloperToTeam(Developers developer, string teamName) { DevTeams teams = GetTeamByName(teamName); if (teams == null) { return(false); } if (developer == null) { return(false); } else { teams.listOfTeamMembers.Add(developer); return(true); } }
public bool RemoveTeamFromList(string teamName) { DevTeams team = GetTeamByName(teamName); if (teamName == null) { return(false); } int initialCount = _listOfTeams.Count; _listOfTeams.Remove(team); if (initialCount > _listOfTeams.Count) { return(true); } else { return(false); } }
public void AddTeamToList(DevTeams team) { _listOfTeams.Add(team); }