Created
March 9, 2016 15:44
-
-
Save iarovyi/39a2bd4ab78cd2097063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[RoutePrefix("stations")] | |
public class RailwayStationsController : ApiController | |
{ | |
[HttpGet] | |
[Route] | |
[EnableQuery] | |
public IQueryable<RailwayStationModel> GetAll() | |
{ | |
return testData.AsQueryable(); | |
} | |
RailwayStationModel[] testData = /*initialization here*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment