Exemplo n.º 1
0
        //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);
            }
        }
Exemplo n.º 2
0
        //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);
            }
        }
Exemplo n.º 3
0
 //DevTeam Create
 public void AddDevTeamToList(DevelopersTeam devTeam)
 {
     _devTeams.Add(devTeam);
 }