Ejemplo n.º 1
0
        //DevTeam Update
        public bool UpdateExistingTeams(int originalTeamIdNumber, DevTeam newTeam)
        {
            DevTeam oldTeam = GetTeamByIdNumber(originalTeamIdNumber);

            if (oldTeam != null)
            {
                oldTeam.DevTeamId        = newTeam.DevTeamId;
                oldTeam.DevTeamName      = newTeam.DevTeamName;
                oldTeam.PreferedLanguage = newTeam.PreferedLanguage;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
        //DevTeam Delete
        public bool RemoveTeamFromList(int idNumber)
        {
            DevTeam team = GetTeamByIdNumber(idNumber);

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

            int initialCount = _devTeams.Count;

            _devTeams.Remove(team);

            if (initialCount > _devTeams.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 3
0
 //DevTeam Create
 public void AddTeamToList(DevTeam team)
 {
     _devTeams.Add(team);
 }