public static IFlurlRequest SetListOptions <T>(this IFlurlRequest req, Action <ListOptionsBuilder <T> > buildListOpts)
        {
            if (buildListOpts == null)
            {
                return(req);
            }

            var builder = new ListOptionsBuilder <T>();

            buildListOpts(builder);

            return(req.SetListOptions(builder.Build()));
        }
        public static IFlurlRequest SetListOptions <T>(this IFlurlRequest req, Action <ListOptionsBuilder <T> > buildListOpts)
        {
            if (buildListOpts == null)
            {
                return(req);
            }

            var builder = new ListOptionsBuilder <T>();

            buildListOpts(builder);
            var opts = builder.Build();

            return(req.SetListOptions(opts.Search, opts.SearchOn, opts.SortBy, opts.Page, opts.PageSize, opts.Filters));
        }