C# 클래스 Nop.Services.Directory.CountryService

Country service
상속: ICountryService
파일 보기 프로젝트 열기: shanalikhan/NopCommerce_POS

공개 메소드들

메소드 설명
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

메소드 상세

CountryService() 공개 메소드

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
리턴 System

DeleteCountry() 공개 메소드

Deletes a country
public DeleteCountry ( Country country ) : void
country Country Country
리턴 void

GetAllCountries() 공개 메소드

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

GetAllCountriesForBilling() 공개 메소드

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

GetAllCountriesForShipping() 공개 메소드

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

GetCountriesByIds() 공개 메소드

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

GetCountryById() 공개 메소드

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

GetCountryByThreeLetterIsoCode() 공개 메소드

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

GetCountryByTwoLetterIsoCode() 공개 메소드

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

InsertCountry() 공개 메소드

Inserts a country
public InsertCountry ( Country country ) : void
country Country Country
리턴 void

UpdateCountry() 공개 메소드

Updates the country
public UpdateCountry ( Country country ) : void
country Country Country
리턴 void