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

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

            return(result);
        }