Exemplo n.º 1
0
        public Room(
            int houseId,
            string title,
            string description,
            Enums.RoomType roomType,
            Enums.LeaseType leaseType,
            decimal rentalFee)
        {
            this.HouseId     = houseId;
            this.Title       = title;
            this.Description = description;
            this.RoomType    = roomType;
            this.LeaseType   = leaseType;
            this.RentalFee   = rentalFee;

            _roomImages = new List <RoomImage>();
        }
Exemplo n.º 2
0
        public Room AddRoom(
            string title,
            string description,
            Enums.RoomType roomType,
            Enums.LeaseType leaseType,
            decimal rentalFee)
        {
            var room = new Room(
                this.Id,
                title,
                description,
                roomType,
                leaseType,
                rentalFee);

            _rooms.Add(room);
            return(room);
        }