示例#1
0
        public IActionResult GetAllTrailsInANationalPark(int nationalParkId)
        {
            var trails = _trailRepository.GetAllTrailsInANationalPark(nationalParkId);

            var trailsDto = _mapper.Map <IEnumerable <Trail>, IEnumerable <TrailDto> >(trails);

            return(Ok(trailsDto));
        }