@model UsersViewModel
@{
ViewData.SetActivePageAndTitle(ServerNavPages.Users);
}
Name |
Email |
Actions |
@foreach (var user in Model.Users)
{
@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;
}
}