My project is based on .NET Core WEB API and it has 3 layers within it i.e. The controllers, Business layer & Data layer.
I have introduced paging in WEB API so that data can be retrieved in batches. The page size is the one I'm looking forward to keep it configurable in one of configuration file.
I'm carrying my paging operation at data access layer and want to read that environment variable.
Is it good practice to do so and in what way I can achieve it ?
Any help or pointers are welcomed.
IConfigurationinterface