public async Task <IAvapiResponse_CURRENCY_EXCHANGE_RATE> QueryPrimitiveAsync(
            string from_currency,
            string to_currency)
        {
            // Build Base Uri
            string queryString = AvapiUrl + "/query";

            // Build query parameters
            IDictionary <string, string> getParameters = new Dictionary <string, string>();

            getParameters.Add(new KeyValuePair <string, string>("function", s_function));
            getParameters.Add(new KeyValuePair <string, string>("apikey", ApiKey));
            getParameters.Add(new KeyValuePair <string, string>("from_currency", from_currency));
            getParameters.Add(new KeyValuePair <string, string>("to_currency", to_currency));
            queryString += UrlUtility.AsQueryString(getParameters);

            string response;

            using (var result = await RestClient.GetAsync(queryString))
            {
                response = await result.Content.ReadAsStringAsync();
            }
            IAvapiResponse_CURRENCY_EXCHANGE_RATE ret = new AvapiResponse_CURRENCY_EXCHANGE_RATE
            {
                RawData         = response,
                Data            = ParseInternal(response),
                LastHttpRequest = queryString
            };

            return(ret);
        }
        public IAvapiResponse_CURRENCY_EXCHANGE_RATE QueryPrimitive(
            string from_currency,
            string to_currency)
        {
            // Build Base Uri
            string queryString = AvapiUrl + "/query";

            // Build query parameters
            IDictionary <string, string> getParameters = new Dictionary <string, string>();

            getParameters.Add(new KeyValuePair <string, string>("function", s_function));
            getParameters.Add(new KeyValuePair <string, string>("apikey", ApiKey));
            getParameters.Add(new KeyValuePair <string, string>("from_currency", from_currency));
            getParameters.Add(new KeyValuePair <string, string>("to_currency", to_currency));
            queryString += UrlUtility.AsQueryString(getParameters);

            // Sent the Request and get the raw data from the Response
            string response = RestClient?.
                              GetAsync(queryString)?.
                              Result?.
                              Content?.
                              ReadAsStringAsync()?.
                              Result;

            IAvapiResponse_CURRENCY_EXCHANGE_RATE ret = new AvapiResponse_CURRENCY_EXCHANGE_RATE
            {
                RawData         = response,
                Data            = ParseInternal(response),
                LastHttpRequest = queryString
            };

            return(ret);
        }