/// <summary> /// Get Hotel Details /// </summary> /// <param name="id">int</param> /// <returns>View</returns> public async Task <IActionResult> Details(int id) { var hotel = await _context.GetHotel(id); if (hotel == null) { return(NotFound()); } return(View(hotel)); }
// GET: Hotels/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var hotel = await _hotel.GetHotel(id); if (hotel == null) { return(NotFound()); } return(View(hotel)); }
public async Task <ActionResult <HotelDto> > GetHotel(int id) { var hotel = await _hotelRepo.GetHotel(id); if (hotel == null) { return(NotFound()); } return(hotel); }
public async Task <ActionResult <Hotel> > GetHotel(int id) { Hotel hotel = await _hotel.GetHotel(id); return(hotel); }
public async Task <ActionResult <HotelDTO> > GetHotel(int id) { return(await _hotel.GetHotel(id)); }
public async Task <ActionResult <HotelDTO> > GetHotel(int id) { HotelDTO hotelDTO = await _hotel.GetHotel(id, _hotelRoom, _room, _amenity); return(hotelDTO); }
public async Task <ActionResult <HotelDTO> > GetHotel(int id) { HotelDTO hotelDto = await _hotel.GetHotel(id); return(hotelDto); }