private MainSideBarData mainSideBarData() { return(new MainSideBarData() { IsHomePage = false, LatestContract = _contractLoader.LatestPresentable(), LatestCV = _cvReader.GetLatest() }); }
public ActionResult Index(Message?msg) { return(View("Index", new HomePageData() { Message = msg, ContactFormSubmission = _contactFormFactory.NewSubmission, SideBarData = new MainSideBarData() { IsHomePage = true, LatestContract = _contractLoader.LatestPresentable(), LatestCV = _cvReader.GetLatest() } })); }