//Only use available DI service for IWebHostEnvironment
 public StockController(IWebHostEnvironment webHostEnvironment)
 {
     rootPath = Path.Combine(webHostEnvironment.WebRootPath, folder);
     inList   = LocalDataAccess.ReadDataStockIn(rootPath, stockInFile);
     outList  = LocalDataAccess.ReadDataStockOut(rootPath, stockOutFile);
     products = LocalDataAccess.ReadDataProduct(rootPath, productFile);
 }