public ActionResult IndexPartial() { var olympicEvents = _eventBoardService.GetRecordBoard(); var viewModel = EventBoardViewModel.Build(olympicEvents); return(PartialView("Index", viewModel)); }
public ActionResult Index() { var olympicEvents = _eventBoardService.GetRecordBoard(); var viewModel = EventBoardViewModel.Build(olympicEvents); ViewBag.NewRecordModalViewModel = new ModalViewModel { HtmlId = "newRecordModal", Title = "New Record - <span class=\"event-name\"></span>", ContentAction = "NewRecordPartial", ContentController = "Home" }; ViewBag.EventDetailsModalViewModel = new ModalViewModel { HtmlId = "eventDetailsModal", Title = "Event Details - <span class=\"event-name\"></span>", ContentAction = "EventDetailsPartial", ContentController = "Home" }; return(View(viewModel)); }