Exemplo n.º 1
0
        public async Task <List <MapBusStopViewModel> > GetMapBusStopsAsync()
        {
            var jsonString = await _mapStopListUrl.GetStringAsync();

            var stops = _converter.ConvertList <MapBusStop>(jsonString);

            return(stops.Select(x => new MapBusStopViewModel
            {
                Model = x
            }).ToList());
        }
Exemplo n.º 2
0
        public async Task <List <BusStopCollectionViewModel> > GetBusStopsAsync()
        {
            var jsonString = await _busStopListUrl.GetStringAsync();

            var collections = _converter.ConvertList <BusStopCollection>(jsonString);

            return(collections.Select(x => new BusStopCollectionViewModel
            {
                Model = x
            }).ToList());
        }