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)