public IActionResult County([FromQuery] int id) { string url = $"{_applicationSettings.UrlThematicGeoJson}/{_geoJsonService.GetFileNameCounty(id)}"; ICounty county = _countyService.Get(id); MapViewModel mapViewModel = new MapViewModel(county); mapViewModel.AddService(_serviceType, url, _layer); MunicipalitiesViewModel model = new MunicipalitiesViewModel() { Municipalities = _municipalityService.GetByCounty(id), CountyName = county.Name, MapViewModel = mapViewModel }; model.DirectUpdateCount = model.Municipalities.Where(m => m.IntroductionState == IntroductionState.Introduced).Count(); ViewBag.ContextViewModel = _contextViewModelHelper.Create(_contextViewModelHelper.Id2Key(id, true)); return(View("Views/FkbData/Management/Aspects/DirectUpdateInfo/County.cshtml", model)); }
public string GetFileNameCounty(int id) { return(_provider.GetFileName(_geonerator, _municipalityService.GetByCounty(id), "25833", id)); }