How to automatically set default value of API model’s property with value from appSettings.json?
I’m creating a web API in Core 3.1 and I have PagingParams model that I will use on many controller actions. The model has PageNumber and PageSize parameters, both of which have a default value: