Mvc dbSetReserve does not contain a definition for getAll ()

0

I created this method, however the error described above appears to me, does anyone know a possible solution?

public IEnumerable<Reserva> GetBookingsByRoomId(int Id)
{
    HotelEntities db = new HotelEntities();
    var allBookings = db.Reserva.GetAll().ToList();
    var bookings = (from Quarto
                    in db.Quarto
                    where Quarto.ID_Quarto == Id
                    select Quarto
                   ).ToList();
    return Mapper.Map<List<Reserva>, List<Reserva>>(bookings);
}
    
asked by anonymous 11.06.2018 / 10:52

0 answers