//DevTeam Update public bool UpdateDevTeam(int givenID, DevTeam newTeam) { DevTeam old = GetListBYID(givenID); if (old != null) { old.DevName = newTeam.DevName; old.IsTeamLeader = newTeam.IsTeamLeader; old.MembersNumber = newTeam.MembersNumber; old.TeamName = old.TeamName; return(true); } else { return(false); } }
//DevTeam Delete public bool RemoveTeam(int id) { DevTeam devTeam = GetListBYID(id); if (devTeam == null) { return(false); } int initialCount = _devTeams.Count; _devTeams.Remove(devTeam); if (initialCount > _devTeams.Count) { return(true); } return(false); }
//DevTeam Read public void AddDevToTeam(Developer developer, DevTeam devTeam) { devTeam._Developers.Add(developer); }
//DevTeam Create public void AddDevTeamList(DevTeam team) { _devTeams.Add(team); }