/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='students'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> PostAsync(this ICertifiedStudents operations, IList <USCPEApiDTOAdvisementCertifiedStudent> students, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(students, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetAsync(this ICertifiedStudents operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='students'> /// </param> public static object Post(this ICertifiedStudents operations, IList <USCPEApiDTOAdvisementCertifiedStudent> students) { return(operations.PostAsync(students).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> public static object Get(this ICertifiedStudents operations) { return(operations.GetAsync().GetAwaiter().GetResult()); }