Esempio n. 1
0
        public async Task <List <QueryResultResource <MatchRecordScoreResource> > > GetLeagueMatchRecords(int leagueId)
        {
            //var matchRecords = await _repository.GetLeagueMatchRecords(leagueId);

            var scoreRecords = await _repository.GetLeagueMatchRecords(leagueId);


            var result = _mapper.Map <List <QueryResult <MatchRecord> >, List <QueryResultResource <MatchRecordScoreResource> > >(scoreRecords);

            return(result);
        }