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