示例#1
0
 /// <summary>
 /// 事業所情報の更新
 /// </summary>
 /// <remarks>
 /// ユーザが所属する事業所の情報を更新する
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='id'>
 /// 事業所ID
 /// </param>
 /// <param name='parameters'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CompaniesUpdateResponse> UpdateAsync(this ICompanies operations, int id, UpdateCompanyParams parameters = default(UpdateCompanyParams), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(id, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <summary>
 /// Update entity in spice_companies
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='spiceCompanyid'>
 /// key: spice_companyid
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateAsync(this ICompanies operations, string spiceCompanyid, MicrosoftDynamicsCRMspiceCompany body, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UpdateWithHttpMessagesAsync(spiceCompanyid, body, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
示例#3
0
 /// <summary>
 /// Update entity in spice_companies
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='spiceCompanyid'>
 /// key: spice_companyid of spice_company
 /// </param>
 /// <param name='body'>
 /// New property values
 /// </param>
 /// <param name='customHeaders'>
 /// Headers that will be added to request.
 /// </param>
 public static HttpOperationResponse UpdateWithHttpMessages(this ICompanies operations, string spiceCompanyid, MicrosoftDynamicsCRMspiceCompany body, Dictionary <string, List <string> > customHeaders = null)
 {
     return(operations.UpdateWithHttpMessagesAsync(spiceCompanyid, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult());
 }