From 1e882e41b24467472bb99ddf1f07e22b9a347e03 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Mon, 13 May 2024 16:09:53 -0500 Subject: [PATCH] Sort order --- .../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 4e42e2ee..92e3eacb 100644 --- a/src/Infrastructure/BotSharp.Abstraction/Utilities/Pagination.cs +++ b/src/Infrastructure/BotSharp.Abstraction/Utilities/Pagination.cs @@ -31,6 +31,11 @@ public class Pagination /// public string? Sort { get; set; } + /// + /// Sort order: asc or desc + /// + public string Order { get; set; } = "asc"; + public int Offset { get { return (Page - 1) * Size; }