/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='getMentorsCommand'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IList <LMSDomainCoreModelsMentorshipMenteeViewModel> > GetMenteesAsync(this IMentorApi operations, LMSApplicationCoreCommandsMentorCommand getMentorsCommand, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetMenteesWithHttpMessagesAsync(getMentorsCommand, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='mentorId'> /// </param> /// <param name='lang'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LMSDomainCoreModelsMentorshipMentorInfoViewModel> GetMentorInfoAsync(this IMentorApi operations, string mentorId, string lang, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetMentorInfoWithHttpMessagesAsync(mentorId, lang, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='getMentorsCommand'> /// </param> /// <param name='lang'> /// </param> public static IList <LMSDomainCoreModelsMentorshipMenteeViewModel> GetMentees(this IMentorApi operations, LMSApplicationCoreCommandsMentorCommand getMentorsCommand, string lang) { return(operations.GetMenteesAsync(getMentorsCommand, lang).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='mentorId'> /// </param> /// <param name='lang'> /// </param> public static LMSDomainCoreModelsMentorshipMentorInfoViewModel GetMentorInfo(this IMentorApi operations, string mentorId, string lang) { return(operations.GetMentorInfoAsync(mentorId, lang).GetAwaiter().GetResult()); }