public async Task <ActionResult <SummonerModel> > GetSummonerByName(string platformId, string summonerName,
                                                                            [FromQuery] bool includeMatches      = true,
                                                                            [FromQuery] bool includeLeagues      = true,
                                                                            [FromQuery] bool includeMatchDetails = false)
        {
            var summoner = await _riotService.GetSummoner(platformId, summonerName);

            if (summoner == null)
            {
                return(NotFound("Summoner with given name could not be find"));
            }

            if (includeMatches)
            {
                var matchOverviews = await _riotService.GetMatchesByAccount(platformId, summoner.AccountId !)
                                     ?? new List <MatchOverviewModel>();

                if (includeMatchDetails)
                {
                    summoner.MatchesWithDetails = await _riotService.GetMatchDetails(platformId, matchOverviews);
                }
                else
                {
                    summoner.Matches = matchOverviews;
                }
            }

            if (includeLeagues)
            {
                summoner.Leagues = await _riotService.GetLeaguesBySummoner(platformId, summoner.Id !);
            }

            return(summoner);
        }
        public async Task <ActionResult <IEnumerable <LeagueEntryModel> > > GetLeaguesBySummoner(string platformId,
                                                                                                 [FromQuery] string summonerId)
        {
            var leagues = await _riotService.GetLeaguesBySummoner(platformId, summonerId);

            return(leagues.ToList());
        }