Lottery Controller
Handles lottery creation, retrieval, and registration.
Functions
Link copied to clipboard
Adds a lottery to the repository.
Link copied to clipboard
fun getLotteriesForCampsite(campsiteId: String, filter: LotteryFilter = LotteryFilter.ACTIVE): List<Lottery>
Gets the lotteries of a campsite that match a filter.
Link copied to clipboard
Retrieves the first lottery accepting registrations for the specified campsite.
Link copied to clipboard