Class AddressListViewModel
- Namespace
- Dynamicweb.Frontend
- Assembly
- Dynamicweb.dll
UserListViewModel represents the rendering context used when a list of user addresses is rendered.
public sealed class AddressListViewModel : ViewModelBase
- Inheritance
-
AddressListViewModel
- Inherited Members
Constructors
AddressListViewModel(IEnumerable<AddressViewModel>)
Initializes a new instance of the AddressListViewModel class.
public AddressListViewModel(IEnumerable<AddressViewModel> addressList)
Parameters
addressList
IEnumerable<AddressViewModel>The list of user addresses to render.
Properties
Addresses
Gets or sets the list of user addresses.
public IEnumerable<AddressViewModel> Addresses { get; }
Property Value
CurrentPage
Gets or sets the current page number.
public int CurrentPage { get; set; }
Property Value
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
PageSize
Gets or sets the address count per page.
public int PageSize { get; set; }
Property Value
TotalCount
Gets or sets the total number of addresses in the list.
public int TotalCount { get; set; }