Exemple #1
0
        private string GetQueryString <TRequest>(TRequest request)
        {
            var propertyValues = PropertyFactory.GetObjectProperties(request);

            var queryParameters = propertyValues
                                  .Where(e => e.Value != null)
                                  .Select(e => QueryParameter.From(e))
                                  .ToList();

            var queryString = QueryString.From(queryParameters);

            return(queryString);
        }