public ActionResult Index() {
			var res = CheckDatabase();
			if (res != null) {
				return res;
			}

			DashboardInfo model = new DashboardInfo();

			CMSConfigHelper.CleanUpSerialData();

			model.Pages = pageHelper.GetSitePageCount(this.SiteID, ContentPageType.PageType.ContentEntry);
			model.Posts = pageHelper.GetSitePageCount(this.SiteID, ContentPageType.PageType.BlogEntry);

			model.Categories = ContentCategory.GetSiteCount(this.SiteID);
			model.Tags = ContentTag.GetSiteCount(this.SiteID);

			model.Snippets = pageHelper.GetSiteSnippetCount(this.SiteID);

			return View(model);
		}
Ejemplo n.º 2
0
		public ActionResult Index() {
			if (DatabaseUpdate.AreCMSTablesIncomplete()) {
				return RedirectToAction("DatabaseSetup");
			}

			DashboardInfo model = new DashboardInfo();

			CMSConfigHelper.CleanUpSerialData();

			model.Pages = pageHelper.GetSitePageCount(this.SiteID, ContentPageType.PageType.ContentEntry);
			model.Posts = pageHelper.GetSitePageCount(this.SiteID, ContentPageType.PageType.BlogEntry);

			model.Categories = ContentCategory.GetSiteCount(this.SiteID);
			model.Tags = ContentTag.GetSiteCount(this.SiteID);

			model.Snippets = pageHelper.GetSiteSnippetCount(this.SiteID);

			return View(model);
		}