Esempio n. 1
0
        public async Task <IActionResult> ActivateIntegrations()
        {
            var integrations = integrationService.GetIntegrations().OrderBy(x => x.Name);

            foreach (var integration in integrations)
            {
                if (integration.IsEnabled && integration.IsInactive)
                {
                    await integrationService.Activator(integration);
                }
            }

            return(Ok(integrations));
        }