public async Task <ActionResult <HotelDTO> > GetHotelByName(string hotelName) { HotelDTO hotelDTO = await _hotel.GetHotelByName(hotelName, _hotelRoom, _room, _amenity); return(hotelDTO); }
public async Task <IActionResult> Index(string searchString) { return(View(await _hotel.GetHotelByName(searchString))); }