//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); } }
//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); } }
//create public void AddTeamContentToList(DeveloperTeam content) { _listOfTeams.Add(content); }
public void AddTeamContentToList(DeveloperTeam homeownersTeam) { throw new NotImplementedException(); }