Table of Contents

Class LocationController

Namespace
Engine.Api.Location
Assembly
Engine.Api.dll
[ApiController]
public class LocationController : ControllerBase
Inheritance
LocationController
Inherited Members

Constructors

LocationController(LocationSearch)

public LocationController(LocationSearch search)

Parameters

search LocationSearch

Methods

CountriesAsync()

[HttpGet("location/countries")]
[ProducesResponseType<Country>(200, "application/json", new string[] { })]
[EndpointName("locationCountries")]
public Task<ActionResult<List<Country>>> CountriesAsync()

Returns

Task<ActionResult<List<Country>>>

CountriesDeprecateAsync()

[HttpPost("contact/locations/countries")]
[ProducesResponseType<Country>(200, "application/json", new string[] { })]
[EndpointName("locationCountries_deprecate")]
public Task<ActionResult<List<Country>>> CountriesDeprecateAsync()

Returns

Task<ActionResult<List<Country>>>

ProvincesAsync(string)

[HttpGet("location/countries/{country}/provinces")]
[ProducesResponseType<Province>(200, "application/json", new string[] { })]
[EndpointName("locationProvinces")]
public Task<ActionResult<List<Province>>> ProvincesAsync(string country)

Parameters

country string

Returns

Task<ActionResult<List<Province>>>

ProvincesDeprecateAsync(string)

[HttpPost("contact/locations/countries/{country}/provinces")]
[ProducesResponseType<Province>(200, "application/json", new string[] { })]
[EndpointName("locationProvinces_deprecate")]
public Task<ActionResult<List<Province>>> ProvincesDeprecateAsync(string country)

Parameters

country string

Returns

Task<ActionResult<List<Province>>>

StatesAsync(string)

[HttpGet("location/countries/{country}/states")]
[ProducesResponseType<Province>(200, "application/json", new string[] { })]
[EndpointName("locationStates")]
public Task<ActionResult<List<Province>>> StatesAsync(string country)

Parameters

country string

Returns

Task<ActionResult<List<Province>>>

StatesDeprecateAsync(string)

[HttpPost("contact/locations/countries/{country}/states")]
[ProducesResponseType<Province>(200, "application/json", new string[] { })]
[EndpointName("locationStates_deprecate")]
public Task<ActionResult<List<Province>>> StatesDeprecateAsync(string country)

Parameters

country string

Returns

Task<ActionResult<List<Province>>>