public static string Search(this CoralClient client, CoralSearchParameters parameters) { return(client.MakeRequest( CoralSearchClient.ENDPOINT, HttpMethod.Post, query: parameters.GetQueryString(), body: parameters.GetPostBody() ).Result); }
public static async Task <string> SearchAsync(this CoralClient client, CoralSearchParameters parameters) { return(await client.MakeRequest( CoralSearchClient.ENDPOINT, HttpMethod.Post, query : parameters.GetQueryString(), body : parameters.GetPostBody() )); }