Beispiel #1
0
        public async Task <TItem> GetParkInfo <TItem>()
        {
            Logger.LogDebug($"{nameof(InformationService)}.{nameof(GetParkInfo)}()");
            var items = await _informationRepository.GetParkInfo();

            int dinosaursCount = await _dinosaursRepository.DinosaursCount();

            int speciesCount = await _dinosaursRepository.SpeciesCount();

            var countInformation = new CountInformation(speciesCount, dinosaursCount);

            return(Mapper.Map <TItem>((items, countInformation)));
        }