예제 #1
0
        public Task <FaresResponse> FaresAsync(FaresRequest request)
        {
            if (request == null)
            {
                throw new NullReferenceException(nameof(request));
            }

            return(GetFaresAsync(request));
        }
예제 #2
0
        private Task <FaresResponse> GetFaresAsync(FaresRequest request)
        {
            var requestUrl = request.ToString();

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