CountryService
public class CountryService : EntityServiceBase, ICountryService
Inheritance
- class EntityServiceBase
- interface ICountryService
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)