Example #1
0
        public IActionResult GetTrailInCampingPark(int campingParkId)
        {
            var objList = _repo.GetTrailsInCampingPark(campingParkId);

            if (objList == null)
            {
                return(NotFound());
            }

            var objDto = _mapper.Map <List <TrailDTO> >(objList);

            return(Ok(objDto));
        }