Example #1
0
        public bool UpdateDevTeamById(int devTeamId, DevTeam updatedTeam)
        {
            var originalDevTeam = GetDevTeamById(devTeamId);

            // Don't want the TeamId to be able to be changed once set
            if (originalDevTeam != null)
            {
                originalDevTeam.TeamName = updatedTeam.TeamName;
                originalDevTeam.Devs     = originalDevTeam.Devs;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
 public void CreateDevTeam(DevTeam devTeam)
 {
     _devTeams.Add(devTeam);
 }