コード例 #1
0
        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));
        }
コード例 #2
0
 public async Task <IEnumerable <CollationOrder> > GetCollationOrder(CollationSetting setting, CancellationToken token)
 => (await collationSettingProcessor.GetCollationOrderAsync(setting.CompanyId)).ToArray();