public IActionResult Index() { var matches = _matchServices.GetAllMatches(); var vm = Mapper.Map <List <MatchesViewViewModel> >(matches); return(View(vm)); }
// GET: Matches public ActionResult Index(int competitionId) { var matches = _matchServices.GetAllMatches(); ViewBag.CompatitionId = competitionId; return(View(matches)); }