Example #1
0
        protected virtual Dictionary <string, object> GetCurrentFilterValues()
        {
            var currentFilterValues = new Dictionary <string, string>();

            foreach (var key in GetFilterQueryStringKeys())
            {
                if (MetaData.GetProperties().Any(p => p.Name == key))
                {
                    currentFilterValues.Add(key, Request.QueryString[key]);
                }
            }

            return(DictionaryUtils.ConvertTypeByProperties(currentFilterValues, typeof(T)));
        }