Table of Contents

Class FavoriteProductListViewModel

Namespace
Dynamicweb.Ecommerce.Frontend
Assembly
Dynamicweb.Ecommerce.dll

FavoriteListListViewModel represents the rendering context used when a collection of favorite lists is rendered.

The model is used to package all favorite products related to a favorite list and set the number items to be displayed per page.

public class FavoriteProductListViewModel : FillableViewModelBase
Inheritance
FavoriteProductListViewModel
Inherited Members

Properties

CurrentPage

Gets or sets the current page number.

public int CurrentPage { get; set; }

Property Value

int

i.e 4

FavoriteProducts

Gets or sets the list of favorite lists.

public IList<FavoriteProductViewModel> FavoriteProducts { get; set; }

Property Value

IList<FavoriteProductViewModel>

An instance of List<T>

Remarks

Lazy loaded on usage - comes with a performance hit when used

PageCount

Gets or sets the count of pages. If this value is greater than 0, the view model result will be paginated, otherwise, plain list.

public int PageCount { get; set; }

Property Value

int

i.e 4

PageSize

Gets or sets the items count per page.

public int PageSize { get; set; }

Property Value

int

i.e 4

TotalFavoriteProductsCount

Gets or sets the total number of favorite lists in the list.

public int TotalFavoriteProductsCount { get; set; }

Property Value

int

i.e 5

To top