Exemplo n.º 1
0
 public async Task <WebApiSettingResult> GetByIdAsync(string SessionKey, int CompanyId, int ApiTypeId)
 => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => {
     var result = await webApiSettingProcessor.GetByIdAsync(CompanyId, ApiTypeId);
     return(new WebApiSettingResult {
         ProcessResult = new ProcessResult {
             Result = true
         },
         WebApiSetting = result,
     });
 }, logger);
Exemplo n.º 2
0
 public async Task <WebApiSetting> GetByIdAsync(WebApiSetting setting, CancellationToken token)
 => await webApiSettingProcessor.GetByIdAsync(setting.CompanyId, setting.ApiTypeId, token);