예제 #1
0
        public async Task <IActionResult> GetById([FromRoute] Guid id)
        {
            var model = await _accommodationService.GetByIdAsync(id);

            var viewModel = Mapper.Map <AccommodationViewModel>(model);

            return(Ok(viewModel));
        }