public async Task <ActionResult <LeagueSeasonModel> > GetLeagueSeason(int id)
        {
            try
            {
                var leagueSeason = await _leagueSeasonRepository.GetLeagueSeasonAsync(id);

                if (leagueSeason is null)
                {
                    return(NotFound());
                }

                return(_mapper.Map <LeagueSeasonModel>(leagueSeason));
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError, Settings.DatabaseFailureString));
            }
        }
        public async Task <IActionResult> Details(int?id)
        {
            if (id is null)
            {
                return(NotFound());
            }

            var leagueSeason = await _leagueSeasonRepository.GetLeagueSeasonAsync(id.Value);

            if (leagueSeason is null)
            {
                return(NotFound());
            }

            _leagueSeasonsDetailsViewModel.LeagueSeason = leagueSeason;

            return(View(_leagueSeasonsDetailsViewModel));
        }