C# 클래스 Nop.Services.Common.AddressService

Address service
상속: IAddressService
파일 보기 프로젝트 열기: emilianionascu/NopCommerce

공개 메소드들

메소드 설명
AddressService ( IRepository
addressRepository, ICountryService countryService, IStateProvinceService stateProvinceService, IEventPublisher eventPublisher, Nop.Core.Domain.Common.AddressSettings addressSettings ) : System

Ctor

DeleteAddress ( Nop.Core.Domain.Common.Address address ) : void

Deletes an address

GetAddressById ( int addressId ) : Nop.Core.Domain.Common.Address

Gets an address by address identifier

GetAddressTotalByCountryId ( int countryId ) : int

Gets total number of addresses by country identifier

GetAddressTotalByStateProvinceId ( int stateProvinceId ) : int

Gets total number of addresses by state/province identifier

InsertAddress ( Nop.Core.Domain.Common.Address address ) : void

Inserts an address

IsAddressValid ( Nop.Core.Domain.Common.Address address ) : bool

Gets a value indicating whether address is valid (can be saved)

UpdateAddress ( Nop.Core.Domain.Common.Address address ) : void

Updates the address

메소드 상세

AddressService() 공개 메소드

Ctor
public AddressService ( IRepository
addressRepository, ICountryService countryService, IStateProvinceService stateProvinceService, IEventPublisher eventPublisher, Nop.Core.Domain.Common.AddressSettings addressSettings ) : System
addressRepository IRepository
Address repository
countryService ICountryService Country service
stateProvinceService IStateProvinceService State/province service
eventPublisher IEventPublisher Event publisher
addressSettings Nop.Core.Domain.Common.AddressSettings Address settings
리턴 System

DeleteAddress() 공개 메소드

Deletes an address
public DeleteAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address Address
리턴 void

GetAddressById() 공개 메소드

Gets an address by address identifier
public GetAddressById ( int addressId ) : Nop.Core.Domain.Common.Address
addressId int Address identifier
리턴 Nop.Core.Domain.Common.Address

GetAddressTotalByCountryId() 공개 메소드

Gets total number of addresses by country identifier
public GetAddressTotalByCountryId ( int countryId ) : int
countryId int Country identifier
리턴 int

GetAddressTotalByStateProvinceId() 공개 메소드

Gets total number of addresses by state/province identifier
public GetAddressTotalByStateProvinceId ( int stateProvinceId ) : int
stateProvinceId int State/province identifier
리턴 int

InsertAddress() 공개 메소드

Inserts an address
public InsertAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address Address
리턴 void

IsAddressValid() 공개 메소드

Gets a value indicating whether address is valid (can be saved)
public IsAddressValid ( Nop.Core.Domain.Common.Address address ) : bool
address Nop.Core.Domain.Common.Address Address to validate
리턴 bool

UpdateAddress() 공개 메소드

Updates the address
public UpdateAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address Address
리턴 void