Exemplo n.º 1
0
 public async Task <ReportSettingsResult> SaveAsync(string SessionKey, ReportSetting[] ReportSetting)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = (await reportSettingProcessor.SaveAsync(ReportSetting, token)).ToList();
         return new ReportSettingsResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             ReportSettings = result,
         };
     }, logger));
 }
Exemplo n.º 2
0
 public async Task <ActionResult <IEnumerable <ReportSetting> > > Save(IEnumerable <ReportSetting> settings, CancellationToken token = default(CancellationToken))
 => (await reportSettingProcessor.SaveAsync(settings, token)).ToArray();