public static IApplicationBuilder UseDataProvider(this IApplicationBuilder app, Action<DataProviderOptions> configureOptions)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }

            var options = new DataProviderOptions();
            configureOptions?.Invoke(options);

            return app.UseDataProvider(options);
        }
        public static IApplicationBuilder UseDataProvider(this IApplicationBuilder app, DataProviderOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException(nameof(app));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            return app.UseMiddleware<DataProviderMiddleware>(options);
        }