예제 #1
0
        public IActionResult Create()
        {
            var clubViewModel = new ClubViewModel
            {
                FoundedOn      = DateTime.Now,
                CountriesItems = countryService.GetAllAsKeyValuePairs(),
                StadiumsItems  = stadiumService.GetAllAsKeyValuePairs()
            };

            return(View(clubViewModel));
        }
        public IActionResult Create()
        {
            var matchViewModel = new MatchViewModel
            {
                PlayedOn      = DateTime.Now,
                ClubsItems    = clubService.GetAllAsKeyValuePairs(),
                SeasonsItems  = seasonService.GetAllAsKeyValuePairs(),
                StadiumsItems = stadiumService.GetAllAsKeyValuePairs(),
                RefereesItems = refereeService.GetAllAsKeyValuePairs()
            };

            return(View(matchViewModel));
        }