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)); }
public async Task <ActionResult <IEnumerable <ExportFieldSetting> > > GetItems(ExportFieldSetting setting, CancellationToken token) => (await exportFieldSettingProcessor.GetAsync(setting, token)).ToArray();