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