Exemple #1
0
        public async Task <ActionResult> Index(bool setupCompleted = false)
        {
            if (setupCompleted && ZeroOdsInstanceRegistrations())
            {
                return(RedirectToAction("RegisterOdsInstance", "OdsInstances"));
            }

            var updateInfo = await _cloudOdsUpdateService.GetUpdateInfo();

            var model = new IndexModel
            {
                SetupJustCompleted = setupCompleted,
                UpdateAvailable    = updateInfo.UpdateAvailable,
                HomeScreenDisplays = _homeScreenDisplayService.GetHomeScreenDisplays()
            };

            return(View(model));
        }
        public async Task <ActionResult> Index()
        {
            var model = await _cloudOdsUpdateService.GetUpdateInfo();

            return(View(model));
        }