示例#1
0
        public async Task <List <BusStationModel> > GetAllAsync()
        {
            var result = await _appCacheHelper.GetCachedAsync(
                "GetAllBusStations",
                () => _busStationRepository.GetAllAsync(),
                typeof(BusStation));

            return(MapToModel <BusStationModel>(result));
        }
示例#2
0
        internal async Task <List <BusStation> > GetAllBusStationsAsync()
        {
            var result = await _appCacheHelper.GetCachedAsync(
                "GetAllBusStations",
                () => _busStationRepository.GetAllAsync(),
                typeof(BusStation));

            return(result);
        }