C# Класс Nop.Services.Customers.CustomerTagService

Customer tag service
Наследование: ICustomerTagService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

CustomerTagService() публичный Метод

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
Результат System

DeleteCustomerTag() публичный Метод

Delete a customer tag
public DeleteCustomerTag ( CustomerTag customerTag ) : void
customerTag Nop.Core.Domain.Customers.CustomerTag Customer tag
Результат void

DeleteTagFromCustomer() публичный Метод

Delete tag from a customer
public DeleteTagFromCustomer ( int customerTagId, int customerId ) : void
customerTagId int
customerId int
Результат void

GetAllCustomerTags() публичный Метод

Gets all customer tags
public GetAllCustomerTags ( ) : IList
Результат IList

GetCustomerCount() публичный Метод

Get number of customers
public GetCustomerCount ( int customerTagId ) : int
customerTagId int Customer tag identifier
Результат int

GetCustomerTagById() публичный Метод

Gets customer tag
public GetCustomerTagById ( int customerTagId ) : CustomerTag
customerTagId int Customer tag identifier
Результат Nop.Core.Domain.Customers.CustomerTag

GetCustomerTagByName() публичный Метод

Gets customer tag by name
public GetCustomerTagByName ( string name ) : CustomerTag
name string Customer tag name
Результат Nop.Core.Domain.Customers.CustomerTag

GetCustomerTagsByName() публичный Метод

Gets customer tags search by name
public GetCustomerTagsByName ( string name ) : IList
name string Customer tags name
Результат IList

GetCustomersByTag() публичный Метод

Gets all customer for tag id
public GetCustomersByTag ( int customerTagId, int pageIndex, int pageSize = 2147483647 ) : IPagedList
customerTagId int
pageIndex int
pageSize int
Результат IPagedList

InsertCustomerTag() публичный Метод

Inserts a customer tag
public InsertCustomerTag ( CustomerTag customerTag ) : void
customerTag Nop.Core.Domain.Customers.CustomerTag Customer tag
Результат void

InsertTagToCustomer() публичный Метод

Insert tag to a customer
public InsertTagToCustomer ( int customerTagId, int customerId ) : void
customerTagId int
customerId int
Результат void

UpdateCustomerTag() публичный Метод

Updates the customer tag
public UpdateCustomerTag ( CustomerTag customerTag ) : void
customerTag Nop.Core.Domain.Customers.CustomerTag Customer tag
Результат void