public async Task <CollationOrdersResult> GetCollationOrderAsync(string SessionKey, int CompanyId) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await collationSettingProcessor.GetCollationOrderAsync(CompanyId, token)).ToList(); return new CollationOrdersResult { ProcessResult = new ProcessResult { Result = true }, CollationOrders = result }; }, logger)); }
public async Task <IEnumerable <CollationOrder> > GetCollationOrder(CollationSetting setting, CancellationToken token) => (await collationSettingProcessor.GetCollationOrderAsync(setting.CompanyId)).ToArray();