/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='gradableIteamDeleteCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSApplicationCoreViewModelGradeBookGradableItemViewModel> DeleteGradableItemAsync(this IGradeBookApi operations, LMSApplicationCoreCommandsGradeBookDeleteGradableItemCommand gradableIteamDeleteCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteGradableItemWithHttpMessagesAsync(gradableIteamDeleteCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='gradableIteamDeleteCommand'> /// </param> /// <param name='lang'> /// </param> public static LMSApplicationCoreViewModelGradeBookGradableItemViewModel DeleteGradableItem(this IGradeBookApi operations, LMSApplicationCoreCommandsGradeBookDeleteGradableItemCommand gradableIteamDeleteCommand, string lang) { return(operations.DeleteGradableItemAsync(gradableIteamDeleteCommand, lang).GetAwaiter().GetResult()); }