This commit is contained in:
2020-02-13 16:13:56 +00:00
parent 2d56814455
commit 8d2c57e702
3 changed files with 22 additions and 7 deletions

View File

@@ -10,12 +10,10 @@ namespace AyaNova.Api.ControllerHelpers
public const int DefaultOffset = 0;
public const int DefaultLimit = 25;
[FromBody]
[Range(0, int.MaxValue)]
[FromBody]
public int? Offset { get; set; }
[FromBody]
[Range(1, MaxPageSize, ErrorMessage = "Limit must be greater than 0 and less than 1000.")]
[FromBody]
public int? Limit { get; set; }
// //Data filter id to use with this list query