Пример #1
0
        public IActionResult Index()
        {
            if ((youtubeService.IsEnabled().Result&& !youtubeService.IsConfigured()) ||
                (twitchService.IsEnabled().Result&& !twitchService.IsConfigured()))
            {
                return(RedirectToAction("Index", "Configuration"));
            }

            return(RedirectToAction("Dashboard"));
        }
Пример #2
0
        public async Task <IActionResult> Index()
        {
            if ((youtubeService.IsEnabled().Result&& !youtubeService.IsConfigured()) ||
                (twitchService.IsEnabled().Result&& !twitchService.IsConfigured()))
            {
                return(RedirectToAction("Index", "Configuration"));
            }

            await youtubeService.PurgeData();

            return(RedirectToAction("Dashboard"));
        }