예제 #1
0
 private MainSideBarData mainSideBarData()
 {
     return(new MainSideBarData()
     {
         IsHomePage = false,
         LatestContract = _contractLoader.LatestPresentable(),
         LatestCV = _cvReader.GetLatest()
     });
 }
예제 #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()
         }
     }));
 }
예제 #3
0
 public ActionResult Index()
 {
     return(View(_reader.GetLatest()));
 }