Esempio n. 1
0
        public IViewComponentResult Invoke()
        {
            if (!_blogSettings.Enabled)
            {
                return(Content(""));
            }

            var model = _blogModelFactory.PrepareHomepageBlogItemsModel();

            return(View(model));
        }