Exemplo n.º 1
0
 public IResponseResult <TResult> ExecuteRequest <TResult>(
     HttpMethod method,
     string baseUrl,
     IQueryString queryString  = null,
     IHeaderCollection headers = null,
     IRequestBody body         = null)
 {
     if (queryString != null && queryString.Any())
     {
         var url = $"{baseUrl}?{queryString}";
         return(this.ExecuteRequest <TResult>(method, url, headers, body));
     }
     else
     {
         return(this.ExecuteRequest <TResult>(method, baseUrl, headers, body));
     }
 }