using System.ComponentModel; using WTA.Shared.Domain; namespace WTA.Shared.Application; public class PaginationModel { public PaginationModel() { } [DefaultValue(1)] public int PageIndex { get; set; } = 1; [DefaultValue(20)] public int PageSize { get; set; } = 20; public int TotalCount { get; set; } public string? OrderBy { get; set; } = $"{nameof(BaseEntity.Order)},{nameof(BaseEntity.CreatedOn)}"; public List Items { get; set; } = new List(); public bool QueryAll { get; set; } public TSearchModel Query { get; set; } = Activator.CreateInstance(); }