//DevTeam Update public bool UpdateExistingTeams(int originalTeamIdNumber, DevTeam newTeam) { DevTeam oldTeam = GetTeamByIdNumber(originalTeamIdNumber); if (oldTeam != null) { oldTeam.DevTeamId = newTeam.DevTeamId; oldTeam.DevTeamName = newTeam.DevTeamName; oldTeam.PreferedLanguage = newTeam.PreferedLanguage; return(true); } else { return(false); } }
//DevTeam Delete public bool RemoveTeamFromList(int idNumber) { DevTeam team = GetTeamByIdNumber(idNumber); if (team == null) { return(false); } int initialCount = _devTeams.Count; _devTeams.Remove(team); if (initialCount > _devTeams.Count) { return(true); } else { return(false); } }
//DevTeam Create public void AddTeamToList(DevTeam team) { _devTeams.Add(team); }