示例#1
0
        internal async Task <EstimateCostsResponse> EstimateCosts(EstimateCostsRequest request)
        {
            if (request == null)
            {
                throw new Exception("No data provided to API");
            }

            var apiResponse =
                await _client.PostAsync <EstimateCostsResponse, OrderInput>("orders/estimate-costs", request.OrderInput);

            return(apiResponse);
        }
示例#2
0
        public async Task <EstimateCostsResponse> EstimateCosts(EstimateCostsRequest request)
        {
            var result = await _orderService.EstimateCosts(request);

            return(result);
        }