コード例 #1
0
        public ActionResult ChooseAnEvent()
        {
            var events        = _eventService.GetOlympicEvents(includeDeleted: false);
            var viewModelList = EventViewModel.BuildList(events);

            return(View("EventSelection", viewModelList));
        }
コード例 #2
0
        public ActionResult EventManagement()
        {
            var events    = _eventService.GetOlympicEvents(includeDeleted: true);
            var viewModel = EventViewModel.BuildList(events);

            return(View(viewModel));
        }