C# Class Nop.Services.Customers.CustomerTagService

Customer tag service
Inheritance: ICustomerTagService
Afficher le fichier Open project: grandnode/grandnode

Méthodes publiques

Méthode Description
CustomerTagService ( IRepository customerTagRepository, IRepository customerRepository, CommonSettings commonSettings, IEventPublisher eventPublisher ) : System

Ctor

DeleteCustomerTag ( CustomerTag customerTag ) : void

Delete a customer tag

DeleteTagFromCustomer ( int customerTagId, int customerId ) : void

Delete tag from a customer

GetAllCustomerTags ( ) : IList

Gets all customer tags

GetCustomerCount ( int customerTagId ) : int

Get number of customers

GetCustomerTagById ( int customerTagId ) : CustomerTag

Gets customer tag

GetCustomerTagByName ( string name ) : CustomerTag

Gets customer tag by name

GetCustomerTagsByName ( string name ) : IList

Gets customer tags search by name

GetCustomersByTag ( int customerTagId, int pageIndex, int pageSize = 2147483647 ) : IPagedList

Gets all customer for tag id

InsertCustomerTag ( CustomerTag customerTag ) : void

Inserts a customer tag

InsertTagToCustomer ( int customerTagId, int customerId ) : void

Insert tag to a customer

UpdateCustomerTag ( CustomerTag customerTag ) : void

Updates the customer tag

Method Details

CustomerTagService() public méthode

Ctor
public CustomerTagService ( IRepository customerTagRepository, IRepository customerRepository, CommonSettings commonSettings, IEventPublisher eventPublisher ) : System
customerTagRepository IRepository Customer tag repository
customerRepository IRepository
commonSettings Nop.Core.Domain.Common.CommonSettings Common settings
eventPublisher IEventPublisher Event published
Résultat System

DeleteCustomerTag() public méthode

Delete a customer tag
public DeleteCustomerTag ( CustomerTag customerTag ) : void
customerTag Nop.Core.Domain.Customers.CustomerTag Customer tag
Résultat void

DeleteTagFromCustomer() public méthode

Delete tag from a customer
public DeleteTagFromCustomer ( int customerTagId, int customerId ) : void
customerTagId int
customerId int
Résultat void

GetAllCustomerTags() public méthode

Gets all customer tags
public GetAllCustomerTags ( ) : IList
Résultat IList

GetCustomerCount() public méthode

Get number of customers
public GetCustomerCount ( int customerTagId ) : int
customerTagId int Customer tag identifier
Résultat int

GetCustomerTagById() public méthode

Gets customer tag
public GetCustomerTagById ( int customerTagId ) : CustomerTag
customerTagId int Customer tag identifier
Résultat Nop.Core.Domain.Customers.CustomerTag

GetCustomerTagByName() public méthode

Gets customer tag by name
public GetCustomerTagByName ( string name ) : CustomerTag
name string Customer tag name
Résultat Nop.Core.Domain.Customers.CustomerTag

GetCustomerTagsByName() public méthode

Gets customer tags search by name
public GetCustomerTagsByName ( string name ) : IList
name string Customer tags name
Résultat IList

GetCustomersByTag() public méthode

Gets all customer for tag id
public GetCustomersByTag ( int customerTagId, int pageIndex, int pageSize = 2147483647 ) : IPagedList
customerTagId int
pageIndex int
pageSize int
Résultat IPagedList

InsertCustomerTag() public méthode

Inserts a customer tag
public InsertCustomerTag ( CustomerTag customerTag ) : void
customerTag Nop.Core.Domain.Customers.CustomerTag Customer tag
Résultat void

InsertTagToCustomer() public méthode

Insert tag to a customer
public InsertTagToCustomer ( int customerTagId, int customerId ) : void
customerTagId int
customerId int
Résultat void

UpdateCustomerTag() public méthode

Updates the customer tag
public UpdateCustomerTag ( CustomerTag customerTag ) : void
customerTag Nop.Core.Domain.Customers.CustomerTag Customer tag
Résultat void