Exemplo n.º 1
0
        public IActionResult SocialNetworks()
        {
            var share  = _siteConfigManager.GetSocialNetworkByType("share");
            var follow = _siteConfigManager.GetSocialNetworkByType("follow");
            var all    = new List <SocialNetworkItem>(share.Count + follow.Count);

            all.AddRange(share);
            all.AddRange(follow);
            return(View(all));
        }
Exemplo n.º 2
0
        public ActionResult Footer()
        {
            FooterViewModel model = new FooterViewModel();

            model.SiteConfig    = _siteConfigManager.GetSiteConfig();
            model.SocialNetwors = _siteConfigManager.GetSocialNetworkByType("share");

            return(PartialView("~/Views/Shared/_Footer.cshtml", model));
        }