Table of Contents

Class FavoriteListListViewModel

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

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

The model has most of its data from the FavoriteListViewModelSettings (properties PageSize, PageCount, CurrentPage and TotalFavoriteListsCount. The FavoriteLists is a collection of favorite lists based related to the user.

public class FavoriteListListViewModel : FillableViewModelBase
Inheritance
FavoriteListListViewModel
Inherited Members

Properties

CurrentPage

Gets or sets the current page number.

public int CurrentPage { get; set; }

Property Value

int

Returns the current page number as an integer e.g. 5

FavoriteLists

Gets or sets the list of favorite lists.

public IList<FavoriteListViewModel> FavoriteLists { get; set; }

Property Value

IList<FavoriteListViewModel>

An instance ofList<T>

Remarks

Lazy loaded - only filled 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

Returns the integer value of the number of pages.

PageSize

Gets or sets the items count per page.

public int PageSize { get; set; }

Property Value

int

Returns the integer value e.g. 5.

TotalFavoriteListsCount

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

public int TotalFavoriteListsCount { get; set; }

Property Value

int

i.e 5

To top