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.

CountryService

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

CountryService

public class CountryService : EntityServiceBase, ICountryService

Inheritance

Namespace

Constructors

CountryService

public CountryService(IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, 
    ILogger logger, ICache cache, IEntityStateCacheAccessor entityStateCacheAccessor)

Methods

CountryExists

public bool CountryExists(Guid storeId, string code)

CreateAllCountryRegions

public void CreateAllCountryRegions(Guid storeId, Guid defaultCurrencyId)

DeleteCountry (1 of 2)

public void DeleteCountry(Guid id)

DeleteCountry (2 of 2)

public void DeleteCountry(Country entity)

DeleteRegion (1 of 2)

public void DeleteRegion(Guid id)

DeleteRegion (2 of 2)

public void DeleteRegion(Region entity)

GetCountries

public IEnumerable<CountryReadOnly> GetCountries(Guid storeId)

GetCountry (1 of 2)

public CountryReadOnly GetCountry(Guid id)

GetCountry (2 of 2)

public CountryReadOnly GetCountry(Guid storeId, string code)

GetIso3166CountryRegions

public IEnumerable<Iso3166Country> GetIso3166CountryRegions()

GetRegion (1 of 2)

public RegionReadOnly GetRegion(Guid id)

GetRegion (2 of 2)

public RegionReadOnly GetRegion(Guid storeId, Guid countryId, string code)

GetRegions (1 of 2)

public IEnumerable<RegionReadOnly> GetRegions(Guid storeId)

GetRegions (2 of 2)

public IEnumerable<RegionReadOnly> GetRegions(Guid storeId, Guid countryId)

RegionExists

public bool RegionExists(Guid storeId, Guid countryId, string code)

SaveCountry

public void SaveCountry(Country entity)

SaveRegion

public void SaveRegion(Region entity)

SortCountries

public void SortCountries(Guid[] sortedIds)

SortRegions

public void SortRegions(Guid[] sortedIds)

Edit this page on GitHub

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