CountryRegion 1.0.9
See the version list below for details.
dotnet add package CountryRegion --version 1.0.9
NuGet\Install-Package CountryRegion -Version 1.0.9
<PackageReference Include="CountryRegion" Version="1.0.9" />
paket add CountryRegion --version 1.0.9
#r "nuget: CountryRegion, 1.0.9"
// Install CountryRegion as a Cake Addin #addin nuget:?package=CountryRegion&version=1.0.9 // Install CountryRegion as a Cake Tool #tool nuget:?package=CountryRegion&version=1.0.9
CountryRegion
A cascading dropdown for loading countries and associated states and local governments.
Badges
stable release version:
Nuget package downloads:
Tech Stack
C#, .Net6.0, .NetStandard2.1,
How Do I Get Started
First, install NuGet. Then, install CountryRegion from the package manager console:
NuGet\Install-Package CountryRegion -Version 1.0.10
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
Or from the .NET CLI as:
dotnet add package CountryRegion --version 1.0.10
Finally, import into the file:
using CountryRegion;
Features
- Get all countries
- Get all states
- Get all local governments
- Get a country
- Get a state
- Get a local government
Sample usage
await Region.Countries();
- Output
Type |
---|
Task<IEnumerable<Response?>> |
await Region.GetStates(countryId);
- Input
Parameter | Type | Description |
---|---|---|
countryId |
int |
Required. The id of the country to get the states associated with it |
- Output
Type |
---|
Task<IEnumerable<Response?>> |
await Region.GetLGAs(countryId, stateId);
- Input
Parameters | Type | Description |
---|---|---|
countryId , |
int |
Required. The id of the country to get the local governments from |
stateId |
int |
Required. The id of the state to get the local governments from |
- Output
Type |
---|
Task<IEnumerable<Response?>> |
await Region.GetCountry(countryId);
- Input
Parameter | Type | Description |
---|---|---|
countryId |
int |
Required. The id of the country to get |
- Output
Type |
---|
Task<Response?> |
await Region.GetState(countryId, stateId);
- Input
Parameters | Type | Description |
---|---|---|
countryId , |
int |
Required. The id of the country to get a state from |
stateId |
int |
Required. The id of the state to get |
- Output
Type |
---|
Task<Response?> |
await Region.GetLGA(stateId, lgaId);
- Input
Parameters | Type | Description |
---|---|---|
stateId |
int |
Required. The id of the state to get local government from |
lgaId |
int? |
Required. The name of the local government in that state |
- Output
Type |
---|
Task<Response?> |
Thanks to all Contributors
Maintainers:
Contributing
Contributions are always welcome!
See contributing.md
for ways to get started.
Please adhere to this project's code of conduct
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.AspNetCore.Http.Features (>= 5.0.17)
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
- RestSharp (>= 106.13.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.