public IActionResult Index() { if ((youtubeService.IsEnabled().Result&& !youtubeService.IsConfigured()) || (twitchService.IsEnabled().Result&& !twitchService.IsConfigured())) { return(RedirectToAction("Index", "Configuration")); } return(RedirectToAction("Dashboard")); }
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")); }