コード例 #1
0
        //update
        public bool UpdateExistingContent(string originalContent, DeveloperTeam newContent)
        {
            // Find the content
            DeveloperTeam oldContent = (originalContent);

            //Update the content
            if (oldContent != null)
            {
                oldContent.TeamName          = newContent.TeamName;
                oldContent.TeamCategory      = newContent.TeamCategory;
                oldContent.PluralSightAccess = newContent.PluralSightAccess;

                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #2
0
        //delete
        public bool RemoveContentFromList(string team)
        {
            DeveloperTeam content = (team);

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

            int initialCount = _listOfTeams.Count;

            _listOfTeams.Remove(content);

            if (initialCount > _listOfTeams.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
コード例 #3
0
 //create
 public void AddTeamContentToList(DeveloperTeam content)
 {
     _listOfTeams.Add(content);
 }
コード例 #4
0
 public void AddTeamContentToList(DeveloperTeam homeownersTeam)
 {
     throw new NotImplementedException();
 }