Example #1
0
        public async Task <IActionResult> GetTours()
        {
            var toursFromRepo = await _tourRepository.GetTours();

            var tours = Mapper.Map <IEnumerable <TourDto> >(toursFromRepo);

            return(Ok(tours));
        }