C# Class Nop.Services.Customers.CustomerTagService

Customer tag service
Inheritance: ICustomerTagService
Mostra file Open project: grandnode/grandnode

Public Methods

Method 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 method

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

DeleteCustomerTag() public method

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

DeleteTagFromCustomer() public method

Delete tag from a customer
public DeleteTagFromCustomer ( int customerTagId, int customerId ) : void
customerTagId int
customerId int
return void

GetAllCustomerTags() public method

Gets all customer tags
public GetAllCustomerTags ( ) : IList
return IList

GetCustomerCount() public method

Get number of customers
public GetCustomerCount ( int customerTagId ) : int
customerTagId int Customer tag identifier
return int

GetCustomerTagById() public method

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

GetCustomerTagByName() public method

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

GetCustomerTagsByName() public method

Gets customer tags search by name
public GetCustomerTagsByName ( string name ) : IList
name string Customer tags name
return IList

GetCustomersByTag() public method

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

InsertCustomerTag() public method

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

InsertTagToCustomer() public method

Insert tag to a customer
public InsertTagToCustomer ( int customerTagId, int customerId ) : void
customerTagId int
customerId int
return void

UpdateCustomerTag() public method

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