public ActionResult GetDeveloper(Guid id) { DeveloperPoco poco = _logic.Get(id); if (poco != null) { return(Ok(poco)); } else { return(NotFound()); } }
//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); } }
//Create public void AddDeveloperToList(DeveloperPoco developer) { _listOfDeveloperPocos.Add(developer); }