C# Класс Nop.Services.Affiliates.AffiliateService

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

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

Метод Описание
AffiliateService ( IRepository affiliateRepository, IEventPublisher eventPublisher ) : System

Ctor

DeleteAffiliate ( Affiliate affiliate ) : void

Marks affiliate as deleted

GetAffiliateById ( int affiliateId ) : Affiliate

Gets an affiliate by affiliate identifier

GetAllAffiliates ( int pageIndex, int pageSize, bool showHidden = false ) : IPagedList

Gets all affiliates

InsertAffiliate ( Affiliate affiliate ) : void

Inserts an affiliate

UpdateAffiliate ( Affiliate affiliate ) : void

Updates the affiliate

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

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

Ctor
public AffiliateService ( IRepository affiliateRepository, IEventPublisher eventPublisher ) : System
affiliateRepository IRepository Affiliate repository
eventPublisher IEventPublisher Event published
Результат System

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

Marks affiliate as deleted
public DeleteAffiliate ( Affiliate affiliate ) : void
affiliate Nop.Core.Domain.Affiliates.Affiliate Affiliate
Результат void

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

Gets an affiliate by affiliate identifier
public GetAffiliateById ( int affiliateId ) : Affiliate
affiliateId int Affiliate identifier
Результат Nop.Core.Domain.Affiliates.Affiliate

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

Gets all affiliates
public GetAllAffiliates ( int pageIndex, int pageSize, bool showHidden = false ) : IPagedList
pageIndex int Page index
pageSize int Page size
showHidden bool A value indicating whether to show hidden records
Результат IPagedList

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

Inserts an affiliate
public InsertAffiliate ( Affiliate affiliate ) : void
affiliate Nop.Core.Domain.Affiliates.Affiliate Affiliate
Результат void

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

Updates the affiliate
public UpdateAffiliate ( Affiliate affiliate ) : void
affiliate Nop.Core.Domain.Affiliates.Affiliate Affiliate
Результат void