first commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
namespace F9WebAiTest.Application.Dtos.Common;
|
||||
|
||||
public record PageRequest(int Page = 1, int PageSize = 10);
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace F9WebAiTest.Application.Dtos.Common;
|
||||
|
||||
public record PagedResult<T>(
|
||||
List<T> Items,
|
||||
int Page,
|
||||
int PageSize,
|
||||
long TotalCount)
|
||||
{
|
||||
public int TotalPages => (int)Math.Ceiling((double)TotalCount / PageSize);
|
||||
}
|
||||
Reference in New Issue
Block a user