/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='reservations'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> PostAsync(this IOrientationReservations operations, IList <USCPEApiDTOAdvisementOrientationReservation> reservations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(reservations, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetAsync(this IOrientationReservations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='reservations'> /// </param> public static object Post(this IOrientationReservations operations, IList <USCPEApiDTOAdvisementOrientationReservation> reservations) { return(operations.PostAsync(reservations).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static object Get(this IOrientationReservations operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }