public async Task <IActionResult> GetTrafficForAllRegionsAsync()
        {
            var traffics = await _trafficService.GetAllTrafficAsync();

            return(Ok(
                       traffics.Where(traffic => traffic != null).Select(traffic =>
            {
                var region = _regionService.GetRegionByCode(traffic.RegionCode);
                return DtoBuilder.GetTrafficWithRegionDto(traffic, region);
            }
                                                                         )));
        }
        public async Task <IActionResult> GetTrafficForRegionAsync(long regionCode)
        {
            var region = _regionService.GetRegionByCode(regionCode);

            if (region == null)
            {
                return(NotFound());
            }

            var traffic = await _trafficService.GetTrafficForRegionAsync(region);

            if (traffic == null)
            {
                return(NotFound());
            }

            return(Ok(DtoBuilder.GetTrafficWithRegionDto(traffic, region)));
        }