Exemple #1
0
        public ActionResult GetDeveloper(Guid id)
        {
            DeveloperPoco poco = _logic.Get(id);

            if (poco != null)
            {
                return(Ok(poco));
            }
            else
            {
                return(NotFound());
            }
        }
Exemple #2
0
        //Update

        //Delete
        public bool RemoveDeveloperFromList(int idNum)
        {
            DeveloperPoco developer = GetDeveloperPoco(idNum);

            if (developer == null)
            {
                return(false);
            }

            int initialCount = _listOfDeveloperPocos.Count;

            _listOfDeveloperPocos.Remove(developer);

            if (initialCount > _listOfDeveloperPocos.Count)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #3
0
 //Create
 public void AddDeveloperToList(DeveloperPoco developer)
 {
     _listOfDeveloperPocos.Add(developer);
 }