Exemple #1
0
        public Task <FareResponse> FareAsync(FareRequest request)
        {
            if (request == null)
            {
                throw new NullReferenceException(nameof(request));
            }

            return(GetFareAsync(request));
        }
Exemple #2
0
        private Task <FareResponse> GetFareAsync(FareRequest request)
        {
            var requestUrl = request.ToString();

            return(GetAsync <FareResponse>(requestUrl));
        }