public IViewComponentResult Invoke(int currentCategoryId, int currentProductId) { if (!_blogSettings.Enabled) { return(Content("")); } var model = _blogModelFactory.PrepareBlogPostYearModel(); return(View(model)); }
public virtual ActionResult BlogMonths() { if (!_blogSettings.Enabled) { return(Content("")); } var model = _blogModelFactory.PrepareBlogPostYearModel(); return(PartialView(model)); }
public virtual ActionResult BlogMonths() { var model = _blogModelFactory.PrepareBlogPostYearModel(); return(PartialView(model)); }