// GET: Setup public ActionResult Index() { try { UnitOfWork_Repositories uof_repos = new UnitOfWork_Repositories(); if (Config.PlatformTitle != "") { string url = FullyQualifiedApplicationPath(); CentralClient.Statistics.SubmitStatistics(Config.PlatformKey , Config.PlatformTitle , Config.DeploymentTimeStamp , "" , float.Parse("0.01") , url , uof_repos.repoLocationViews.GetCount() , uof_repos.repoLocations.GetCount() , uof_repos.repoThings.GetCount() , uof_repos.repoDevices.GetCount() , uof_repos.repoEndpoints.GetCount() , uof_repos.repoDynUsers.GetCount() , Server.MachineName , "" , "" , 0 ); return(View("complete")); } } catch { } return(View()); }
public PartialViewResult PlatformConfigPV() { SetupModels.PlatformConfig conf = new SetupModels.PlatformConfig(); try { UnitOfWork_Repositories uof_repos = new UnitOfWork_Repositories(); conf = uof_repos.repoDynSettings.GetSetupPlatformConfig(); ViewBag.TimeZone = new SelectList(StaticMenus.GetRegionalTimeOptions(), conf.TimeZone); } catch { ViewBag.TimeZone = new SelectList(StaticMenus.GetRegionalTimeOptions(), 0); } return(PartialView("_Config", conf)); }