//DevTeam Update public bool UpdateExistingDeveloperTeam(double originalTeamID, DevTeam newDeveloperTeam) { // Find the developer team DevTeam oldDeveloperTeam = GetDeveloperTeamByID(originalTeamID); // Update the developer if (oldDeveloperTeam != null) { oldDeveloperTeam.TeamName = newDeveloperTeam.TeamName; oldDeveloperTeam.TeamID = newDeveloperTeam.TeamID; return(true); } else { return(false); } }
//DevTeam Delete public bool RemoveDeveloperTeamFromList(double teamID) { DevTeam developerTeam = GetDeveloperTeamByID(teamID); if (developerTeam == null) { return(false); } int initialDevTeamsCount = _devTeamDirectory.Count; _devTeamDirectory.Remove(developerTeam); if (initialDevTeamsCount > _devTeamDirectory.Count) { return(true); } else { return(false); } }
//DevTeam Create public void AddDeveloperTeam(DevTeam devTeam) { _devTeamDirectory.Add(devTeam); }