//Delete public bool RemoveContentFromList(string TeamName) { DevTeamPoco team = GetDevTeamByTitle(TeamName); bool results = _listOfDevTeam.Remove(team); return(results); }
//Update public bool UpdateExistingContent(string originalTitle, DevTeamPoco newContent) { // Find the content DevTeamPoco oldContent = GetDevTeamByTitle(originalTitle); //Update the content if (oldContent != null) { oldContent.TeamName = newContent.TeamName; oldContent.TeamID = newContent.TeamID; return(true); } else { return(false); } }
//create public void AddDevTeamToList(DevTeamPoco devTeam) { _listOfDevTeam.Add(devTeam); }