예제 #1
0
 public async Task <TaxClassResult> GetItemsAsync(string sessionKey)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(sessionKey, async token =>
     {
         var result = (await taxClassProcessor.GetAsync(token)).ToList();
         return new TaxClassResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             TaxClass = result,
         };
     }, logger));
 }
예제 #2
0
 public async Task <IEnumerable <TaxClass> > GetItems(CancellationToken token)
 => (await taxclassProcessor.GetAsync(token)).ToArray();
예제 #3
0
 private async Task <List <TaxClass> > GetTaxClassesAsync(CancellationToken token)
 => (await taxClassProcessor.GetAsync(token)).ToList();