예제 #1
0
 /// <summary>
 /// Create new Unit, WriteUnit permission required, Draft
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='unit'>
 /// The entity to create
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> PostAsyncByunitAsync(this IUnits operations, CreateUnitDto unit, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PostAsyncByunitWithHttpMessagesAsync(unit, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }