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);
public async Task <WebApiSetting> GetByIdAsync(WebApiSetting setting, CancellationToken token) => await webApiSettingProcessor.GetByIdAsync(setting.CompanyId, setting.ApiTypeId, token);