@model UsersViewModel @{ ViewData.SetActivePageAndTitle(ServerNavPages.Users); }
Total Users: @Model.Total
@foreach (var user in Model.Users) { }
Name Email Actions
@user.Name @user.Email Edit - Remove
@{ string listUsers(int prevNext, int count) { var skip = Model.Skip; if (prevNext == -1) skip = Math.Max(0, Model.Skip - Model.Count); else if (prevNext == 1) skip = Model.Skip + count; var act = Url.Action("ListUsers", new { skip = skip, count = count, }); return act; } }