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()); }
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()); }