예제 #1
0
        public IActionResult Index()
        {
            var matches = _matchServices.GetAllMatches();
            var vm      = Mapper.Map <List <MatchesViewViewModel> >(matches);

            return(View(vm));
        }
예제 #2
0
        // GET: Matches
        public ActionResult Index(int competitionId)
        {
            var matches = _matchServices.GetAllMatches();

            ViewBag.CompatitionId = competitionId;

            return(View(matches));
        }