public ActionResult Index() { int maxVersion = db.CZVersions.Max(x => x.VersionNumber); CZSystemVersion systemVersion = db.CZSystemVersions.Single(); ViewBag.Message = "Chronozoom Content Authoring "; return(View()); }
public BaseController() : base() { this.db = new ChronozoomEntities(); int maxVersion = db.CZVersions.Max(x => x.VersionNumber); CZSystemVersion systemVersion = db.CZSystemVersions.Single(); ViewBag.MaxVersion = maxVersion + ""; ViewBag.StagingVersion = systemVersion.StagingVersion; ViewBag.ProductionVersion = systemVersion.ProdVersion; }