C# Class Nop.Services.Directory.CountryService

Country service
Inheritance: ICountryService
显示文件 Open project: shanalikhan/NopCommerce_POS

Public Methods

Method Description
CountryService ( ICacheManager cacheManager, IRepository countryRepository, IRepository storeMappingRepository, IStoreContext storeContext, CatalogSettings catalogSettings, IEventPublisher eventPublisher ) : System

Ctor

DeleteCountry ( Country country ) : void

Deletes a country

GetAllCountries ( bool showHidden = false ) : IList

Gets all countries

GetAllCountriesForBilling ( bool showHidden = false ) : IList

Gets all countries that allow billing

GetAllCountriesForShipping ( bool showHidden = false ) : IList

Gets all countries that allow shipping

GetCountriesByIds ( Array countryIds ) : IList

Get countries by identifiers

GetCountryById ( int countryId ) : Country

Gets a country

GetCountryByThreeLetterIsoCode ( string threeLetterIsoCode ) : Country

Gets a country by three letter ISO code

GetCountryByTwoLetterIsoCode ( string twoLetterIsoCode ) : Country

Gets a country by two letter ISO code

InsertCountry ( Country country ) : void

Inserts a country

UpdateCountry ( Country country ) : void

Updates the country

Method Details

CountryService() public method

Ctor
public CountryService ( ICacheManager cacheManager, IRepository countryRepository, IRepository storeMappingRepository, IStoreContext storeContext, CatalogSettings catalogSettings, IEventPublisher eventPublisher ) : System
cacheManager ICacheManager Cache manager
countryRepository IRepository Country repository
storeMappingRepository IRepository Store mapping repository
storeContext IStoreContext Store context
catalogSettings CatalogSettings Catalog settings
eventPublisher IEventPublisher Event published
return System

DeleteCountry() public method

Deletes a country
public DeleteCountry ( Country country ) : void
country Country Country
return void

GetAllCountries() public method

Gets all countries
public GetAllCountries ( bool showHidden = false ) : IList
showHidden bool A value indicating whether to show hidden records
return IList

GetAllCountriesForBilling() public method

Gets all countries that allow billing
public GetAllCountriesForBilling ( bool showHidden = false ) : IList
showHidden bool A value indicating whether to show hidden records
return IList

GetAllCountriesForShipping() public method

Gets all countries that allow shipping
public GetAllCountriesForShipping ( bool showHidden = false ) : IList
showHidden bool A value indicating whether to show hidden records
return IList

GetCountriesByIds() public method

Get countries by identifiers
public GetCountriesByIds ( Array countryIds ) : IList
countryIds Array Country identifiers
return IList

GetCountryById() public method

Gets a country
public GetCountryById ( int countryId ) : Country
countryId int Country identifier
return Country

GetCountryByThreeLetterIsoCode() public method

Gets a country by three letter ISO code
public GetCountryByThreeLetterIsoCode ( string threeLetterIsoCode ) : Country
threeLetterIsoCode string Country three letter ISO code
return Country

GetCountryByTwoLetterIsoCode() public method

Gets a country by two letter ISO code
public GetCountryByTwoLetterIsoCode ( string twoLetterIsoCode ) : Country
twoLetterIsoCode string Country two letter ISO code
return Country

InsertCountry() public method

Inserts a country
public InsertCountry ( Country country ) : void
country Country Country
return void

UpdateCountry() public method

Updates the country
public UpdateCountry ( Country country ) : void
country Country Country
return void