public void UpdateRooms(List <Room> rooms, Hotels hotel, List <Orders> orders) { for (int i = rooms.Count - 1; i >= 0; i--) { if (rooms[i].hotel == hotel.hotel_name) { rooms.Remove(rooms[i]); } } for (int i = orders.Count - 1; i >= 0; i--) { if (orders[i].hotel == hotel.hotel_name) { orders.Remove(orders[i]); } } }
public void AddHotel(Hotels obj) { hotels.Add(obj); }