コード例 #1
0
        public async Task <IActionResult> GetAll()
        {
            var models = await _accommodationService.GetAllAsync();

            var viewModels = Mapper.Map <IEnumerable <AccommodationViewModel> >(models);

            return(Ok(viewModels));
        }