Exemple #1
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='addDeleteCourseToTrackCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <bool?> RemoveCoursesFromTrackAsync(this ITrackApi operations, LMSApplicationCoreCommandsTrackAddDeleteCourseToTrackCommand addDeleteCourseToTrackCommand, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.RemoveCoursesFromTrackWithHttpMessagesAsync(addDeleteCourseToTrackCommand, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #2
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='addEditTrackCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IList <LMSApplicationCoreViewModelTrackCourseViewModel> > AddCoursesToTrackAsync(this ITrackApi operations, LMSApplicationCoreCommandsTrackAddDeleteCourseToTrackCommand addEditTrackCommand, string lang, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.AddCoursesToTrackWithHttpMessagesAsync(addEditTrackCommand, lang, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #3
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='addDeleteCourseToTrackCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static bool?RemoveCoursesFromTrack(this ITrackApi operations, LMSApplicationCoreCommandsTrackAddDeleteCourseToTrackCommand addDeleteCourseToTrackCommand, string lang)
 {
     return(operations.RemoveCoursesFromTrackAsync(addDeleteCourseToTrackCommand, lang).GetAwaiter().GetResult());
 }
Exemple #4
0
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='addEditTrackCommand'>
 /// </param>
 /// <param name='lang'>
 /// </param>
 public static IList <LMSApplicationCoreViewModelTrackCourseViewModel> AddCoursesToTrack(this ITrackApi operations, LMSApplicationCoreCommandsTrackAddDeleteCourseToTrackCommand addEditTrackCommand, string lang)
 {
     return(operations.AddCoursesToTrackAsync(addEditTrackCommand, lang).GetAwaiter().GetResult());
 }