Skip to content

Commit 54fb85a

Browse files
committed
fix: corrected weird parameter error by switching from struct to class
1 parent 64271ef commit 54fb85a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
namespace Intersect.Server.Web.RestApi.Payloads;
22

3-
public struct PagingInfo()
3+
// TODO: Struct, right now there's an exception when it's a struct and I'm not sure how to fix it
4+
public class PagingInfo
45
{
56
public const int MaxPageSize = 100;
67
public const int MinPageSize = 5;
78
public const int DefaultPageSize = 10;
89

910
public int Page { get; set; } = 0;
1011

11-
public int Count { get; set; } = 10;
12+
public int Count { get; set; } = DefaultPageSize;
1213
}

0 commit comments

Comments
 (0)