public static async Task <string> BookingAsync(this CoralClient client, CoralBookingParameters parameters) { return(await client.MakeRequest( CoralBookingClient.ENDPOINT, HttpMethod.Post, query : parameters.GetQueryString(), body : parameters.GetPostBody() )); }
public static string Booking(this CoralClient client, CoralBookingParameters parameters) { return(client.MakeRequest( CoralBookingClient.ENDPOINT, HttpMethod.Post, query: parameters.GetQueryString(), body: parameters.GetPostBody() ).Result); }