Example #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='location'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> PostLocationAsync(this ICollateral operations, string id, Models.Presentation.Requests.Collateral.Location location, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PostLocationWithHttpMessagesAsync(id, location, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// </param>
 /// <param name='location'>
 /// </param>
 public static string PostLocation(this ICollateral operations, string id, Models.Presentation.Requests.Collateral.Location location)
 {
     return(operations.PostLocationAsync(id, location).GetAwaiter().GetResult());
 }