-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
using ProjectB.Models; | ||
class Tour | ||
{ | ||
public DateTime Time { get; set; } // Time of the tour | ||
public string Location { get; set; } // Location of the tour | ||
public int Capacity { get; set; } // Maximum capacity of the tour | ||
public ICollection<Participant> Participants { get; set; } // Collection of participants signed up for the tour | ||
public ICollection<Guest> Participants { get; set; } // Collection of participants signed up for the tour | ||
|
||
public Tour(DateTime time, string location, int capacity) | ||
{ | ||
Time = time; | ||
Location = location; | ||
Capacity = capacity; | ||
Participants = new List<Participant>(); // Initialize participant collection | ||
Participants = new List<Guest>(); // Initialize participant collection | ||
} | ||
} |