예제 #1
0
        public ActionResult IndexPartial()
        {
            var olympicEvents = _eventBoardService.GetRecordBoard();
            var viewModel     = EventBoardViewModel.Build(olympicEvents);

            return(PartialView("Index", viewModel));
        }
예제 #2
0
        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));
        }