13 lines
360 B
C#
13 lines
360 B
C#
|
|
namespace Domain.Generics
|
|||
|
|
{
|
|||
|
|
public class PagedResult<T>
|
|||
|
|
{
|
|||
|
|
public IEnumerable<T> Items { get; set; } = Enumerable.Empty<T>();
|
|||
|
|
public int TotalItems { get; set; }
|
|||
|
|
public int Page { get; set; }
|
|||
|
|
public int PageSize { get; set; }
|
|||
|
|
|
|||
|
|
public int TotalPages => (int)Math.Ceiling((double)TotalItems / PageSize);
|
|||
|
|
}
|
|||
|
|
}
|