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}"); }
public Task <SearchResponse> SearchAsync(BusinessSearchOptions businessSearchOptions, Dictionary <string, string> optionalParameters = null) { return(GetAsync <SearchResponse>(GetBusinessesSearchPath(businessSearchOptions, optionalParameters))); }