예제 #1
0
        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);
        }