C# Class Nop.Services.Affiliates.AffiliateService

Affiliate service
Inheritance: IAffiliateService
Mostrar archivo Open project: emilianionascu/NopCommerce

Public Methods

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

Method Details

AffiliateService() public method

Ctor
public AffiliateService ( IRepository affiliateRepository, IEventPublisher eventPublisher ) : System
affiliateRepository IRepository Affiliate repository
eventPublisher IEventPublisher Event published
return System

DeleteAffiliate() public method

Marks affiliate as deleted
public DeleteAffiliate ( Affiliate affiliate ) : void
affiliate Nop.Core.Domain.Affiliates.Affiliate Affiliate
return void

GetAffiliateById() public method

Gets an affiliate by affiliate identifier
public GetAffiliateById ( int affiliateId ) : Affiliate
affiliateId int Affiliate identifier
return Nop.Core.Domain.Affiliates.Affiliate

GetAllAffiliates() public method

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

InsertAffiliate() public method

Inserts an affiliate
public InsertAffiliate ( Affiliate affiliate ) : void
affiliate Nop.Core.Domain.Affiliates.Affiliate Affiliate
return void

UpdateAffiliate() public method

Updates the affiliate
public UpdateAffiliate ( Affiliate affiliate ) : void
affiliate Nop.Core.Domain.Affiliates.Affiliate Affiliate
return void