Beispiel #1
0
        public override string ToString()
        {
            VancouverHotelEntities context = new VancouverHotelEntities();

            RoomType roomType = context.RoomTypes.Find(RoomTypeId);

            return(RoomId + ":" + roomType.RoomTypeName + " (Max" + roomType.Capacity + ") " + "$" + roomType.PricePerNight + " (" + Status + ")");
        }
Beispiel #2
0
        public override string ToString()
        {
            VancouverHotelEntities context = new VancouverHotelEntities();

            Room     room     = context.Rooms.Find(RoomId);
            RoomType roomType = context.RoomTypes.Find(room.RoomTypeId);

            return(ReservationId + ":" + roomType.RoomTypeName + "$" + roomType.PricePerNight * NumberOfNight);
        }