public FeedbacksController(IRetrospectiveDataRepository retrospectiveDataRepository, IConfiguration configuration) { _retrospectiveDataRepository = retrospectiveDataRepository ?? throw new ArgumentNullException("retrospectiveDataRepository"); _configuration = configuration ?? throw new ArgumentNullException("configuration"); _filePath = _configuration["FilePath"]; //File configured in appsettings.json serves as the data source for this api if (string.IsNullOrEmpty(_filePath)) { throw new Exception("Please make sure json file configured in appsettings.json exists in the specified folder location"); } }