Carrotware.CMS.Mvc.UI.Admin.Controllers.CmsAdminController.Index C# (CSharp) Метод

Index() публичный Метод

public Index ( ) : System.Web.Mvc.ActionResult
Результат System.Web.Mvc.ActionResult
		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);
		}