C# Class Nop.Services.Common.AddressService

Address service
Inheritance: IAddressService
Show file Open project: emilianionascu/NopCommerce

Public Methods

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

Method Details

AddressService() public method

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
return System

DeleteAddress() public method

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

GetAddressById() public method

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

GetAddressTotalByCountryId() public method

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

GetAddressTotalByStateProvinceId() public method

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

InsertAddress() public method

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

IsAddressValid() public method

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
return bool

UpdateAddress() public method

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