Ejemplo n.º 1
0
        //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);
            }
        }
Ejemplo n.º 2
0
        //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);
            }
        }
Ejemplo n.º 3
0
 //DevTeam Create
 public void AddDeveloperTeam(DevTeam devTeam)
 {
     _devTeamDirectory.Add(devTeam);
 }