Esempio n. 1
0
        //DevTeam Update
        public bool updateExistingDevsTeams(int originalID, DevelopersTeams newID)
        {
            //Find the content
            DevelopersTeams oldID = getDeveloperTeamsByID(originalID);

            //Update the content
            if (oldID != null)
            {
                oldID.TeamName       = newID.TeamName;
                oldID.TeamID         = newID.TeamID;
                oldID.DevTeamMembers = newID.DevTeamMembers;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
        //DevTeam Delete
        public bool RemoveDevTeamFromList(int iD)
        {
            DevelopersTeams devTeam = getDeveloperTeamsByID(iD);

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

            int initialCount = _devTeams.Count;

            _devTeams.Remove(devTeam);

            if (initialCount > _devTeams.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 3
0
 //DevTeam Create
 public void AddDevsTeamToList(DevelopersTeams devTeam)
 {
     _devTeams.Add(devTeam);
 }