Exemplo n.º 1
0
        public async Task <IActionResult> Create()
        {
            var leagues = await leagueService.GetAll();

            var result = new TeamEditViewModel
            {
                Leagues = leagues.ToList()
            };

            return(View("TeamEdit", result));
        }
Exemplo n.º 2
0
        public Task <List <DdlLeagueVM> > GetAll()
        {
            var leagues = _leagueService.GetAll();

            return(leagues);
        }
        public IActionResult FixturesAndResults()
        {
            var model = _leagueService.GetAll(_hostingEnvironment.WebRootPath);

            return(View(model));
        }
Exemplo n.º 4
0
        public IActionResult All()
        {
            var leagues = leagueService.GetAll();

            return(View(leagues));
        }
        public IActionResult Match()
        {
            var model = _leagueService.GetAll();

            return(View(model));
        }