Пример #1
0
        public async Task <ActionResult <HotelDTO> > GetHotelByName(string hotelName)
        {
            HotelDTO hotelDTO = await _hotel.GetHotelByName(hotelName, _hotelRoom, _room, _amenity);

            return(hotelDTO);
        }
Пример #2
0
 public async Task <IActionResult> Index(string searchString)
 {
     return(View(await _hotel.GetHotelByName(searchString)));
 }