Exemplo n.º 1
0
        /// <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));
        }
Exemplo n.º 2
0
        // 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));
        }
Exemplo n.º 3
0
        public async Task <ActionResult <HotelDto> > GetHotel(int id)
        {
            var hotel = await _hotelRepo.GetHotel(id);

            if (hotel == null)
            {
                return(NotFound());
            }

            return(hotel);
        }
Exemplo n.º 4
0
        public async Task <ActionResult <Hotel> > GetHotel(int id)
        {
            Hotel hotel = await _hotel.GetHotel(id);

            return(hotel);
        }
Exemplo n.º 5
0
 public async Task <ActionResult <HotelDTO> > GetHotel(int id)
 {
     return(await _hotel.GetHotel(id));
 }
Exemplo n.º 6
0
        public async Task <ActionResult <HotelDTO> > GetHotel(int id)
        {
            HotelDTO hotelDTO = await _hotel.GetHotel(id, _hotelRoom, _room, _amenity);

            return(hotelDTO);
        }
Exemplo n.º 7
0
        public async Task <ActionResult <HotelDTO> > GetHotel(int id)
        {
            HotelDTO hotelDto = await _hotel.GetHotel(id);

            return(hotelDto);
        }