0
ajayak created
I have class:
class GetInventoryListInput : PagedAndSortedInputDto
I tried to override MaxResultCount property in constructor and also as new MaxResultCount. In this case, I always get 10 result.
I tried with [DisableValidation] but still get the error:
The field MaxResultCount must be between 1 and 1000.
How can I override MaxResultCount for 1 single call?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
4 Answer(s)
-
0
How are you calling the API?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
I'm using Angular frontend.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @ajayak
Are you sending the value for MaxResultCount (a value bigger than 1000) from client app ? If so, I suggest you to use a different Dto for this special case.
This field is marked with
[Range(1, AppConsts.MaxPageSize)], so you can't override it for a single call.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
@ismcagdas, I'm sending 1100 from client app. I guess that would be the last option then :)
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)