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)); }
public async Task <IEnumerable <TaxClass> > GetItems(CancellationToken token) => (await taxclassProcessor.GetAsync(token)).ToArray();
private async Task <List <TaxClass> > GetTaxClassesAsync(CancellationToken token) => (await taxClassProcessor.GetAsync(token)).ToList();