示例#1
0
        public async Task <ListPage <TaxCode> > ListTaxCodesAsync(ListArgs <TaxCode> hsListArgs)
        {
            var args        = TaxCodeMapper.Map(hsListArgs);
            var avataxCodes = await _avaTax.ListTaxCodesAsync(args.Filter, args.Top, args.Skip, args.OrderBy);

            var codeList = TaxCodeMapper.Map(avataxCodes, args);

            return(codeList);
        }
示例#2
0
        public async Task <ListPage <TaxCode> > ListTaxCodesAsync(ListArgs <TaxCode> hsListArgs)
        {
            if (ShouldMockAvalaraResponse())
            {
                return(CreateMockTaxCodeList());
            }

            var args        = TaxCodeMapper.Map(hsListArgs);
            var avataxCodes = await _avaTax.ListTaxCodesAsync(args.Filter, args.Top, args.Skip, args.OrderBy);

            var codeList = TaxCodeMapper.Map(avataxCodes, args);

            return(codeList);
        }