Ejemplo n.º 1
0
 // GET: api/Location/5
 public IEnumerable <StoryLocation> Get(int id)
 {
     return((IEnumerable <StoryLocation>)StoryLocation.GetStoriesFromNewsLocation(db.Locations.Find(id)));
 }
Ejemplo n.º 2
0
 // GET: api/Location
 public IEnumerable <StoryLocation> Get()
 {
     return((IEnumerable <StoryLocation>)StoryLocation.GetStoriesFromNewsLocation(db.Locations.ToList()));
 }