Class OrderListViewModel
- Namespace
- Dynamicweb.Ecommerce.Frontend
- Assembly
- Dynamicweb.Ecommerce.dll
OrderListViewModel represents the rendering context used when a collection of orders is rendered.
The model is used to package orders related to a customer and set the number items to be displayed per page.
public class OrderListViewModel : FillableViewModelBase
- Inheritance
-
OrderListViewModel
- 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
Orders
Gets the list of orders.
public IList<OrderViewModel> Orders { get; set; }
Property Value
- IList<OrderViewModel>
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
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.
TotalOrdersCount
Gets the total number of orders in the list.
public int TotalOrdersCount { get; set; }
Property Value
- int
e.g. 5