コード例 #1
0
        public async Task <GeneralSettingResult> SaveAsync(string SessionKey, GeneralSetting Generalsetting)
        {
            return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
            {
                var result = await generalSettingProcessor.SaveAsync(Generalsetting, token);

                return new GeneralSettingResult
                {
                    ProcessResult = new ProcessResult {
                        Result = true
                    },
                    GeneralSetting = result,
                };
            }, logger));
        }
コード例 #2
0
 public async Task <ActionResult <GeneralSetting> > Save(GeneralSetting setting, CancellationToken token)
 => await generalSettingProcessor.SaveAsync(setting, token);