Exemple #1
0
        public void AddRoom(AddRoomDto addRoomDto)
        {
            var office = officeRepository.GetOfficeById(addRoomDto.OfficeId);
            var room   = new Room(addRoomDto.MaxCapacity, addRoomDto.Chairs);

            office.AddRoom(room);
            officeRepository.AddRoom(office.Id, room);
        }