Exemple #1
0
        //Delete
        public bool RemoveContentFromList(string TeamName)
        {
            DevTeamPoco team    = GetDevTeamByTitle(TeamName);
            bool        results = _listOfDevTeam.Remove(team);

            return(results);
        }
Exemple #2
0
        //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);
            }
        }
Exemple #3
0
 //create
 public void AddDevTeamToList(DevTeamPoco devTeam)
 {
     _listOfDevTeam.Add(devTeam);
 }