internal static string GetQueryParams(this Filter filters)
        {
            if (filters == null)
            {
                return(string.Empty);
            }
            //var dictionary = new Dictionary<string, dynamic>()
            //{
            //	{"fromdate",filters.FromDate.ToUnixTime() },
            //	{"todate",filters.ToDate.ToUnixTime() },
            //	{"max",filters.Max.ToUnixTime() },
            //	{"min", filters.Min.ToUnixTime()},
            //	{"order", filters.Order.ToString().ToLower()},
            //	{"Page", filters.Page},
            //	{"PageSize", filters.PageSize},
            //	{"Sort", filters.Sort.ToString().ToLower()},
            //	{"Site", filters.Site.ToLower()},
            //};

            var dictionary = filters.AddValidKeys();

            return(dictionary.ToQueryString());
        }