Esempio n. 1
0
        public ActionResult <List <Reservation> > ListReservationsByHotel(int hotelId)
        {
            Hotel hotel = _hotelDao.Get(hotelId);

            if (hotel == null)
            {
                return(NotFound("Hotel Id is invalid"));
            }
            return(_reservationDao.FindByHotel(hotelId));
        }