Table of Contents

Class FavoriteListViewModel

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

FavoriteListViewModel represents the rendering context used when a favorite list is rendered.

The model contains information about the favorite list; id, name, description and information about the relation to its user (user id) and the products related to the favorite list

public class FavoriteListViewModel : FillableViewModelBase
Inheritance
FavoriteListViewModel
Inherited Members

Properties

Description

Gets or sets the favorite list description.

public string Description { get; set; }

Property Value

string

Returns a description of the favorite list

Id

Gets or sets the favorite list ID.

public int Id { get; set; }

Property Value

int

i.e 5

IsDefault

Gets or sets the value determines whether this favorite list is default.

public bool IsDefault { get; set; }

Property Value

bool

Returns true if the favorite list is active - otherwise false

Name

Gets or sets the favorite list name.

public string Name { get; set; }

Property Value

string

Returns the name of the favorite list

ProductList

Gets or sets the favorite list products.

public ProductListViewModel ProductList { get; set; }

Property Value

ProductListViewModel

Returns the products related to favorite list

Remarks

Lazy loaded - only filled when used. Comes with a performance hit when used

UserId

Gets or sets the access user ID.

public int UserId { get; set; }

Property Value

int

Returns the user id related to the favorite list

To top