/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='parentId'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> GetByParentIdAsync(this IParents operations, int parentId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByParentIdWithHttpMessagesAsync(parentId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='applicantUscId'> /// </param> /// <param name='parent'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> PostByApplicantUscIdParentAsync(this IParents operations, string applicantUscId, Parent parent, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostByApplicantUscIdParentWithHttpMessagesAsync(applicantUscId, parent, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='parentId'> /// </param> public static object GetByParentId(this IParents operations, int parentId) { return(operations.GetByParentIdAsync(parentId).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='applicantUscId'> /// </param> /// <param name='parent'> /// </param> public static object PostByApplicantUscIdParent(this IParents operations, string applicantUscId, Parent parent) { return(operations.PostByApplicantUscIdParentAsync(applicantUscId, parent).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='applicantUscId'> /// </param> public static object GetByApplicantUscId(this IParents operations, string applicantUscId) { return(operations.GetByApplicantUscIdAsync(applicantUscId).GetAwaiter().GetResult()); }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='applicantUscId'> /// </param> /// <param name='parentId'> /// </param> public static object DeleteByApplicantUscIdParentId(this IParents operations, string applicantUscId, int parentId) { return(operations.DeleteByApplicantUscIdParentIdAsync(applicantUscId, parentId).GetAwaiter().GetResult()); }