예제 #1
0
        public IViewComponentResult Invoke(int currentCategoryId, int currentProductId)
        {
            if (!_blogSettings.Enabled)
            {
                return(Content(""));
            }

            var model = _blogModelFactory.PrepareBlogPostYearModel();

            return(View(model));
        }
예제 #2
0
        public virtual ActionResult BlogMonths()
        {
            if (!_blogSettings.Enabled)
            {
                return(Content(""));
            }

            var model = _blogModelFactory.PrepareBlogPostYearModel();

            return(PartialView(model));
        }
예제 #3
0
        public virtual ActionResult BlogMonths()
        {
            var model = _blogModelFactory.PrepareBlogPostYearModel();

            return(PartialView(model));
        }