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); }
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); }