public async Task <T> GetBusRoutesAsync <T>(string url) { var routesMock = new MockBusLocator(); var routesJson = await routesMock.GetJsonForStopsAsync(); T routes = JsonConvert.DeserializeObject <T>(routesJson); return(routes); }
public async Task <IEnumerable <Route> > Get() { var routesMock = new MockBusLocator(); var routesJson = await routesMock.GetJsonForStopsAsync(); List <Route> routes = JsonConvert.DeserializeObject <List <Route> >(routesJson); return(routes); }