예제 #1
0
        //Delete
        public bool RemoveContentFromList(string TeamID)
        {
            DeveloperPoco team    = GetContentByTitle(TeamID);
            bool          results = _developerDirectory.Remove(team);

            return(results);
        }
예제 #2
0
        //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);
            }
        }
예제 #3
0
 //create
 public void AddDeveloperToList(DeveloperPoco developer)
 {
     _developerDirectory.Add(developer);
 }