diff options
Autocommit at 06.05.2022 @ 09:21
1 files changed, 12 insertions, 0 deletions
| -rw-r--r-- | src/EventSystem/EventSystem.cpp | 12 |
diff --git a/src/EventSystem/EventSystem.cpp b/src/EventSystem/EventSystem.cpp index c5fc0c1..4de7b70 100644 --- a/src/EventSystem/EventSystem.cpp +++ b/src/EventSystem/EventSystem.cpp @@ -118,3 +118,15 @@ StatusCode EventSystem::buyTicket(const char* name, const Date& date, const Tick // // return freeTickets; // } + +List<Ticket> EventSystem::queryTickets(const char* name, const Date& date) { + unsigned ind = indexOfEvent(name, date); + if (ind == events.get_count()) + return E_EventDoesNotExist; + + return events[ind].get_tickets(); +} + +List<Reservation> EventSystem::queryReservations(const char* name, const Date& date) { + +} |
