using System.Collections.Generic; namespace Infrastructure.API { public class PaginatedItemsViewModel where TEntity : class { public int PageIndex { get; private set; } public int PageSize { get; private set; } public long Count { get; private set; } public IEnumerable Data { get; private set; } public PaginatedItemsViewModel(int pageIndex, int pageSize, long count, IEnumerable data) { this.PageIndex = pageIndex; this.PageSize = pageSize; this.Count = count; this.Data = data; } } }