/// <summary> /// Validate email adddress for syntactic correctness only /// </summary> /// Validate whether a given email address is syntactically correct via a /// limited local-only check. Use the address/full API to do a full /// validation. /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='value'> /// Email address to validate, e.g. "*****@*****.**" /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PostOKResponse> PostAsync(this IEmail operations, string value, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(value, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='contactMeViewModel'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <bool?> PostAsync(this IEmail operations, ContactMeViewModel contactMeViewModel, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWithHttpMessagesAsync(contactMeViewModel, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }