public async Task <ActionResult> SetupComplete() { var defaultOdsInstance = await _cachedItems.GetDefaultCloudOdsInstance(); var model = new OdsInstanceSettingsModel { ProductionSetupCompletedModel = new OdsInstanceSetupCompletedModel { ProvisioningWarnings = await _getProductionApiProvisioningWarningsQuery.Execute(defaultOdsInstance) }, OdsInstanceSettingsTabEnumerations = _tabDisplayService.GetOdsInstanceSettingsTabDisplay(OdsInstanceSettingsTabEnumeration.Setup) }; return(View(model)); }
public async Task <CloudOdsUpdateInfo> GetUpdateInfo() { var instance = await _cachedItems.GetDefaultCloudOdsInstance(); var cloudOdsUpdateInfo = new CloudOdsUpdateInfo { Instance = instance, LatestPublishedVersion = _cachedItems.LatestPublishedOdsVersion?.ToVersion(), CurrentInstanceVersion = instance?.Version?.ToVersion(), }; cloudOdsUpdateInfo.VersionInformationIsValid = _cloudOdsUpdateCheckService.VersionInformationIsValid(cloudOdsUpdateInfo); cloudOdsUpdateInfo.UpdateAvailable = _cloudOdsUpdateCheckService.UpdateAvailable(cloudOdsUpdateInfo); cloudOdsUpdateInfo.UpdateIsCompatible = _cloudOdsUpdateCheckService.UpdateIsCompatible(cloudOdsUpdateInfo); return(cloudOdsUpdateInfo); }