Exemplo n.º 1
0
        /// <param name='operations'>
        /// Reference to the ZtherApiIntegration.API.ICountries.
        /// </param>
        /// <param name='code'>
        /// Required.
        /// </param>
        /// <param name='cancellationToken'>
        /// Cancellation token.
        /// </param>
        public static async Task <Country> GetByCountryAsync(this ICountries operations, string code, CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            Microsoft.Rest.HttpOperationResponse <ZtherApiIntegration.API.Models.Country> result = await operations.GetByCountryWithOperationResponseAsync(code, cancellationToken).ConfigureAwait(false);

            return(result.Body);
        }