//DevTeam Update public bool UpdateExistingDevTeams(string originalID, DevelopersTeam newID) { //Find the content DevelopersTeam oldID = GetDevTeamByID(originalID); //Update the content if (oldID != null) { oldID.TeamName = newID.TeamName; oldID.TeamID = newID.TeamID; oldID.DevTeamMembers = newID.DevTeamMembers; return(true); } else { return(false); } }
//DevTeam Delete public bool RemoveDevTeamFromList(string iD) { DevelopersTeam devTeam = GetDevTeamByID(iD); if (devTeam == null) { return(false); } int initialCount = _devTeams.Count; _devTeams.Remove(devTeam); if (initialCount > _devTeams.Count) { return(true); } else { return(false); } }
//DevTeam Create public void AddDevTeamToList(DevelopersTeam devTeam) { _devTeams.Add(devTeam); }