public ActionResult CompanySocialLinks() { var socialLinks = socialLinkRepository.GetSocialLinks(); return(PartialView("_SocialLinks", socialLinks.Select(link => SocialLinkViewModel.GetViewModel(link, attachmentUrlRetriever)))); }
public IViewComponentResult Invoke() { var socialLinks = socialLinkRepository.GetSocialLinks().Select(link => SocialLinkViewModel.GetViewModel(link, attachmentUrlRetriever)); return View("~/Components/ViewComponents/SocialLinks/Default.cshtml", socialLinks); }