Ejemplo n.º 1
0
        //Build Team
        public void AddDevelopersToTeam(string devTeamID, string companyID)

        {
            //Find team to add developers to

            GetDevTeamList();

            //Pick team to add developer to
            DevTeam newT = GetTeamByID(devTeamID);

            //Get Developer ID
            Developer newD = devRepo.GetMemberByID(companyID);

            //Add developer to team
            newT.Members.Add(newD);
        }
Ejemplo n.º 2
0
        //Update
        public bool UpdateExistingDevTeamList(string originalTeamList, DevTeam newTeamList)
        {
            //Find member list
            DevTeam oldList = GetTeamByID(originalTeamList);

            //Update member list
            if (oldList != null)
            {
                oldList.DevTeamName = newTeamList.DevTeamName;
                oldList.DevTeamID   = newTeamList.DevTeamID;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
        //Delete
        public bool RemoveDevTeamFromList(string devTeamID)
        {
            DevTeam teamNum = GetTeamByID(devTeamID);

            if (teamNum == null)
            {
                return(false);
            }

            int initialCount = _listOfTeam.Count;

            _listOfTeam.Remove(teamNum);
            if (initialCount > _listOfTeam.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 4
0
 //Create
 public void AddDevTeamsToList(DevTeam team)
 {
     _listOfTeam.Add(team);
 }