zeroframework/Services/Identity/ZeroFramework.IdentityServer.API/Models/Generics/PagedRequestModel.cs

16 lines
514 B
C#
Raw Permalink Normal View History

2023-12-05 09:22:48 +00:00
using Microsoft.AspNetCore.Mvc;
using ZeroFramework.IdentityServer.API.Constants;
using ZeroFramework.IdentityServer.API.Extensions;
namespace ZeroFramework.IdentityServer.API.Models.Generics
{
public record PagedRequestModel
{
[ModelBinder(BinderType = typeof(SortingModelBinder))]
public virtual IEnumerable<SortingDescriptor>? Sorter { get; set; }
public int PageNumber { get; set; } = 1;
public int PageSize { get; set; } = PagingConstants.DefaultPageSize;
}
}