Exemple #1
0
        public async Task <List <Injury> > Get()
        {
            var injuries = await _service.Get();

            var result = _mapper.Map <List <Injury> >(injuries);

            return(result);
        }
Exemple #2
0
        public async Task <List <Country> > Get()
        {
            var countries = await _domainService.Get();

            var result = countries.Select(x => _mapper.Map <Country>(x)).ToList();

            return(result);
        }
Exemple #3
0
        public async Task <List <Continent> > Get()
        {
            var continents = await _domainService.Get();

            var result = continents.Select(x => _mapper.Map <Continent>(x)).ToList();

            return(result);
        }
Exemple #4
0
        public async Task <List <World> > Get()
        {
            var worlds = await _domainService.Get();

            var result = worlds.Select(x => _mapper.Map <World>(x)).ToList();

            return(result);
        }