Exemplo n.º 1
0
        public async Task <ExportFieldSettingsResult> GetItemsByExportFileTypeAsync(string SessionKey, int CompanyId, int ExportFileType)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = (await exportFieldSettingProcessor.GetAsync(new ExportFieldSetting {
                    CompanyId = CompanyId,
                    ExportFileType = ExportFileType,
                })).ToList();

                return new ExportFieldSettingsResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    ExportFieldSettings = result,
                };
            }, logger));
        }
Exemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <ExportFieldSetting> > > GetItems(ExportFieldSetting setting, CancellationToken token)
 => (await exportFieldSettingProcessor.GetAsync(setting, token)).ToArray();