示例#1
0
        private static string GetBusinessesSearchPath(BusinessSearchOptions businessSearchOptions,
                                                      Dictionary <string, string> optionalParameters = null)
        {
            if (businessSearchOptions == null)
            {
                throw new ArgumentNullException(nameof(businessSearchOptions));
            }
            var searchQueryString = businessSearchOptions.GetQueryParamters();

            if (optionalParameters != null)
            {
                searchQueryString = $"{searchQueryString}&{optionalParameters.GetQueryParameters()}";
            }

            return($"{BusinessesSearchPath}?{searchQueryString}");
        }
示例#2
0
 public Task <SearchResponse> SearchAsync(BusinessSearchOptions businessSearchOptions,
                                          Dictionary <string, string> optionalParameters = null)
 {
     return(GetAsync <SearchResponse>(GetBusinessesSearchPath(businessSearchOptions, optionalParameters)));
 }