C# Class Nop.Services.Catalog.CompareProductsService

Compare products service
Inheritance: ICompareProductsService
Show file Open project: emilianionascu/NopCommerce

Public Methods

Method Description
AddProductToCompareList ( int productId ) : void

Adds a product to a "compare products" list

ClearCompareProducts ( ) : void

Clears a "compare products" list

CompareProductsService ( System.Web.HttpContextBase httpContext, IProductService productService ) : System

Ctor

GetComparedProducts ( ) : IList

Gets a "compare products" list

RemoveProductFromCompareList ( int productId ) : void

Removes a product from a "compare products" list

Protected Methods

Method Description
GetComparedProductIds ( ) : List

Gets a "compare products" identifier list

Method Details

AddProductToCompareList() public method

Adds a product to a "compare products" list
public AddProductToCompareList ( int productId ) : void
productId int Product identifier
return void

ClearCompareProducts() public method

Clears a "compare products" list
public ClearCompareProducts ( ) : void
return void

CompareProductsService() public method

Ctor
public CompareProductsService ( System.Web.HttpContextBase httpContext, IProductService productService ) : System
httpContext System.Web.HttpContextBase HTTP context
productService IProductService Product service
return System

GetComparedProductIds() protected method

Gets a "compare products" identifier list
protected GetComparedProductIds ( ) : List
return List

GetComparedProducts() public method

Gets a "compare products" list
public GetComparedProducts ( ) : IList
return IList

RemoveProductFromCompareList() public method

Removes a product from a "compare products" list
public RemoveProductFromCompareList ( int productId ) : void
productId int Product identifier
return void