Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

CountryController

API reference for CountryController in Vendr, the eCommerce solution for Umbraco v8+

CountryController

public class CountryController : VendrAuthorizedJsonControllerBase

Inheritance

Namespace

Constructors

CountryController

public CountryController(UmbracoControllerContext vendrContext, IStoreService storeService, 
    ICountryService countryService, IUnitOfWorkProvider uowProvider)

Methods

CreateAllCountryRegions

public void CreateAllCountryRegions(Guid storeId, Guid defaultCurrencyId)

CreateCountry

public CountryEditDto CreateCountry(Guid storeId)

CreateRegion

public RegionEditDto CreateRegion(Guid storeId, Guid countryId)

DeleteCountry

public HttpResponseMessage DeleteCountry(Guid countryId)

DeleteRegion

public HttpResponseMessage DeleteRegion(Guid regionId)

GetCountries

public IEnumerable<CountryBasicDto> GetCountries(Guid storeId)

GetCountriesWithRegions

public IEnumerable<CountryWithRegionsBasicDto> GetCountriesWithRegions(Guid storeId)

GetCountry

public CountryEditDto GetCountry(Guid countryId)

GetIso3166CountryRegions

public IEnumerable<Iso3166Country> GetIso3166CountryRegions()

GetRegion

public RegionEditDto GetRegion(Guid regionId)

GetRegions

public IEnumerable<RegionBasicDto> GetRegions(Guid storeId, Guid? countryId)

SaveCountry

public CountryEditDto SaveCountry(CountrySaveDto country)

SaveRegion

public RegionEditDto SaveRegion(RegionSaveDto region)

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.