public static async Task <ICollection <TimezoneDefinition> > GetAllTimeZonesWithDisplayNameAsync(
            this ICrmWebApiClient apiClient, int localeId,
            CancellationToken cancellationToken)
        {
            if (apiClient == null)
            {
                throw new ArgumentNullException(nameof(apiClient));
            }

            var request  = new GetAllTimeZonesWithDisplayNameRequest(localeId);
            var response = await apiClient.ExecuteAsync <GetAllTimeZonesWithDisplayNameResponse>(request, cancellationToken)
                           .ConfigureAwait(false);

            return(response.Items.ToArray());
        }
        public static async Task <EntityCollection> GetAllTimeZonesWithDisplayNameAsync(
            this ICrmWebApiClient apiClient, int localeId, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            if (apiClient == null)
            {
                throw new ArgumentNullException(nameof(apiClient));
            }

            var request = new GetAllTimeZonesWithDisplayNameRequest(localeId);

            var response = await
                           apiClient.ExecuteAsync(request, cancellationToken)
                           .ConfigureAwait(false);

            return(response);
        }