예제 #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='addUpdateGradeCategory'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LMSApplicationCoreViewModelGradeBookGradeCategoryViewModel> UpdateGradeCategoryAsync(this IGradeBookApi operations, LMSApplicationCoreCommandsGradeBookAddUpdateGradeCategoryCommand addUpdateGradeCategory, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateGradeCategoryWithHttpMessagesAsync(addUpdateGradeCategory, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
예제 #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='addUpdateGradeCategory'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static LMSApplicationCoreViewModelGradeBookGradeCategoryViewModel UpdateGradeCategory(this IGradeBookApi operations, LMSApplicationCoreCommandsGradeBookAddUpdateGradeCategoryCommand addUpdateGradeCategory, string lang)
 {
     return(operations.UpdateGradeCategoryAsync(addUpdateGradeCategory, lang).GetAwaiter().GetResult());
 }