You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
634 B
23 lines
634 B
using System.Collections.Generic;
|
|
|
|
namespace Infrastructure.API
|
|
{
|
|
public class PaginatedItemsViewModel<TEntity> where TEntity : class
|
|
{
|
|
public int PageIndex { get; private set; }
|
|
|
|
public int PageSize { get; private set; }
|
|
|
|
public long Count { get; private set; }
|
|
|
|
public IEnumerable<TEntity> Data { get; private set; }
|
|
|
|
public PaginatedItemsViewModel(int pageIndex, int pageSize, long count, IEnumerable<TEntity> data)
|
|
{
|
|
this.PageIndex = pageIndex;
|
|
this.PageSize = pageSize;
|
|
this.Count = count;
|
|
this.Data = data;
|
|
}
|
|
}
|
|
} |