public string GetNatureAreasBySearchFilter([FromBody] SearchFilterRequest searchFilterRequest) { var natureAreas = SqlServer.GetNatureAreasBySearchFilter(searchFilterRequest); var r = GeoJsonConverter.NatureAreasToGeoJson(natureAreas, !searchFilterRequest.CenterPoints); return(r); }
public string GetNatureAreasBySearchFilterV2([FromBody] SearchFilterRequest searchFilterRequest) { var search = new SearchV2(Config.Settings.ConnectionString); var list = search.GetNatureAreasBySearchFilter(searchFilterRequest); var geoJson = GeoJsonConverter.NatureAreasToGeoJson(list, !searchFilterRequest.CenterPoints); return(geoJson); }