Esempio n. 1
0
 private MainSideBarData mainSideBarData()
 {
     return(new MainSideBarData()
     {
         IsHomePage = false,
         LatestContract = _contractLoader.LatestPresentable(),
         LatestCV = _cvReader.GetLatest()
     });
 }
Esempio n. 2
0
 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()
         }
     }));
 }