コード例 #1
0
        public async System.Threading.Tasks.Task <CustomerInfo> GetCustomerAsync(string custId, ResourceManagementSystem rms)
        {
            var cmsUrl   = rms.HasFlag(ResourceManagementSystem.API1) ? _api1 : _api2;
            var response = await _httpCall.GetJsonRequest <CustomerInfo[]>(
                cmsUrl +
                _getCustomerUrl +
                custId);

            return(response.Length > 0 ? response[0] : null);
        }