public ActionResult CompanySocialLinks()
        {
            var socialLinks = socialLinkRepository.GetSocialLinks();

            return(PartialView("_SocialLinks", socialLinks.Select(link => SocialLinkViewModel.GetViewModel(link, attachmentUrlRetriever))));
        }
示例#2
0
        public IViewComponentResult Invoke()
        {
            var socialLinks = socialLinkRepository.GetSocialLinks().Select(link => SocialLinkViewModel.GetViewModel(link, attachmentUrlRetriever));

            return View("~/Components/ViewComponents/SocialLinks/Default.cshtml", socialLinks);
        }