Beispiel #1
0
        public void SetTypeAvailability(int roomtype, int nr_available)
        {
            var roomsbusiness = new RoomsBusiness();

            var getrooms = roomsbusiness.GetList().Where((a) => a.RoomType == roomtype).Take(nr_available).ToList();

            return;
        }
Beispiel #2
0
        public List <Room> Insert(Room room)
        {
            _roomsBusiness.Add(room);

            return(_roomsBusiness.GetList());
        }