push
This commit is contained in:
@@ -9,8 +9,8 @@ namespace VizhTalk.Grpc.Learning
|
||||
public sealed partial class Pagination
|
||||
{
|
||||
public int Skip()
|
||||
=> PageNumber * (PageSize == 0 ? 10 : PageSize);
|
||||
=> (PageNumber - 1) * (PageSize == 0 ? 10 : PageSize);
|
||||
public int Take()
|
||||
=> PageNumber;
|
||||
=> PageSize;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user