1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 20:53:16 +00:00

organization search page

This commit is contained in:
Kyle Spearrin
2018-03-21 17:41:14 -04:00
parent cd262e81c8
commit 7475ed7318
16 changed files with 321 additions and 30 deletions

View File

@@ -0,0 +1,13 @@
using System.Collections.Generic;
namespace Bit.Admin.Models
{
public abstract class PagedModel<T>
{
public List<T> Items { get; set; }
public int Page { get; set; }
public int Count { get; set; }
public int? PreviousPage => Page < 2 ? (int?)null : Page - 1;
public int? NextPage => Items.Count < Count ? (int?)null : Page + 1;
}
}