Pagination.cs 516 B

1234567891011121314151617181920
  1. using Masuit.MyBlogs.Core.Models.Enum;
  2. namespace Masuit.MyBlogs.Core.Models
  3. {
  4. public class Pagination
  5. {
  6. public Pagination(int page, int size, int total, OrderBy? orderBy = null)
  7. {
  8. Page = page;
  9. Size = size;
  10. TotalCount = total;
  11. OrderBy = orderBy;
  12. }
  13. public int Page { get; set; } = 1;
  14. public int Size { get; set; } = 15;
  15. public OrderBy? OrderBy { get; set; }
  16. public int TotalCount { get; set; }
  17. }
  18. }