예제 #1
0
 /// <summary>
 /// Update a Unit, WriteUnit permission required, Draft
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// The id the entity to update
 /// </param>
 /// <param name='unit'>
 /// The entity to update
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async System.Threading.Tasks.Task <object> PatchAsyncByidunitAsync(this IUnits operations, int id, EditUnitDto unit, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
 {
     using (var _result = await operations.PatchAsyncByidunitWithHttpMessagesAsync(id, unit, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }