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);
}