Method | Description | |
---|---|---|
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
|
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 |
return | System |
public DeleteAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | Address |
return | void |
public GetAddressById ( int addressId ) : Nop.Core.Domain.Common.Address | ||
addressId | int | Address identifier |
return | Nop.Core.Domain.Common.Address |
public GetAddressTotalByCountryId ( int countryId ) : int | ||
countryId | int | Country identifier |
return | int |
public GetAddressTotalByStateProvinceId ( int stateProvinceId ) : int | ||
stateProvinceId | int | State/province identifier |
return | int |
public InsertAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | Address |
return | void |
public IsAddressValid ( Nop.Core.Domain.Common.Address address ) : bool | ||
address | Nop.Core.Domain.Common.Address | Address to validate |
return | bool |
public UpdateAddress ( Nop.Core.Domain.Common.Address address ) : void | ||
address | Nop.Core.Domain.Common.Address | Address |
return | void |