//Delete public bool RemoveContentFromList(string TeamID) { DeveloperPoco team = GetContentByTitle(TeamID); bool results = _developerDirectory.Remove(team); return(results); }
//Update public bool UpdateExistingContent(string originalTitle, DeveloperPoco newdeveloper) { // Find the content DeveloperPoco olddeveloper = GetContentByTitle(originalTitle); //Update the content if (olddeveloper != null) { olddeveloper.Name = newdeveloper.Name; olddeveloper.ID = newdeveloper.ID; return(true); } else { return(false); } }
//create public void AddDeveloperToList(DeveloperPoco developer) { _developerDirectory.Add(developer); }