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

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

            return(result);
        }