From 6024a53476a3b314a7661f03fc7f95e5fc9f74d5 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Mon, 13 May 2024 16:00:39 -0500 Subject: [PATCH] Add Sort parameter to Pagination. --- .../BotSharp.Abstraction/Utilities/Pagination.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Infrastructure/BotSharp.Abstraction/Utilities/Pagination.cs b/src/Infrastructure/BotSharp.Abstraction/Utilities/Pagination.cs index d11752f6..4e42e2ee 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Utilities/Pagination.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Utilities/Pagination.cs @@ -26,6 +26,11 @@ public class Pagination } } + /// + /// Sort by field + /// + public string? Sort { get; set; } + public int Offset { get { return (Page - 1) * Size; }