public IActionResult Get() { var allStations = _stationsCacheStoreClient.GetAllRecords(); var allStationsDto = _mapper.Map <IEnumerable <StationDto> >(allStations); return(Ok(allStationsDto)); }
public IActionResult GetAll() { var externalAirIndexes = _airIndexesCacheStoreClient.GetAllRecords(); var airIndexes = _mapper.Map <IEnumerable <AirIndexDto> >(externalAirIndexes); return(Ok(airIndexes)); }