-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add step for specifically removing not found orgs if geo search …
…is on (#16)
- Loading branch information
1 parent
26e1a36
commit 5278320
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
src/Dan.Plugin.Tilda/Extensions/TildaParametersExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using Dan.Plugin.Tilda.Models; | ||
|
||
namespace Dan.Plugin.Tilda.Extensions; | ||
|
||
public static class TildaParametersExtensions | ||
{ | ||
public static bool HasGeoSearchParams(this TildaParameters parameters) | ||
{ | ||
if (parameters is null) | ||
{ | ||
return false; | ||
} | ||
|
||
return !string.IsNullOrEmpty(parameters.postcode) || | ||
!string.IsNullOrEmpty(parameters.municipalityNumber) || | ||
!string.IsNullOrEmpty(parameters.nace); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters