コード例 #1
0
ファイル: BlogController.cs プロジェクト: berlstone/GStore
        protected ActionResult ViewBlogEntry(BlogEntry blogEntry)
        {
            if (blogEntry == null)
            {
                throw new ArgumentNullException("blogEntry");
            }

            GStoreDb.LogUserActionEvent(HttpContext, RouteData, this, UserActionCategoryEnum.Blog, UserActionActionEnum.Blog_ViewEntry, blogEntry.UrlName, true, blogId: blogEntry.BlogId, blogEntryId: blogEntry.BlogEntryId);

            SetMetaTagsAndTheme(blogEntry);

            return View("ViewBlogEntry", blogEntry);
        }
コード例 #2
0
ファイル: BlogController.cs プロジェクト: berlstone/GStore
 protected void SetMetaTagsAndTheme(BlogEntry entry)
 {
     StoreFrontConfiguration config = CurrentStoreFrontConfigOrThrow;
     _metaDescriptionOverride = entry.MetaDescriptionOrSystemDefault(config);
     _metaKeywordsOverride = entry.MetaKeywordsOrSystemDefault(config);
     ViewData.Theme(entry.ThemeOrSystemDefault(config));
 }