Table of Contents

Class UserListViewModel

Namespace
Dynamicweb.Frontend
Assembly
Dynamicweb.dll

UserListViewModel represents the rendering context used when a list of users is rendered.

public sealed class UserListViewModel : ViewModelBase
Inheritance
UserListViewModel
Inherited Members

Constructors

UserListViewModel(IEnumerable<UserViewModel>?)

Initializes a new instance of the UserListViewModel class.

public UserListViewModel(IEnumerable<UserViewModel>? userList)

Parameters

userList IEnumerable<UserViewModel>

The list of users to render.

Properties

CurrentPage

Gets or sets the current page number.

public int CurrentPage { get; set; }

Property Value

int

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

PageSize

Gets or sets the users count per page.

public int PageSize { get; set; }

Property Value

int

TotalCount

Gets or sets the total number of users in the list.

public int TotalCount { get; set; }

Property Value

int

Users

Gets or sets the list of users.

public IEnumerable<UserViewModel> Users { get; }

Property Value

IEnumerable<UserViewModel>
To top