public IActionResult CheckInWithDetails(int id, int verenigingId) { McEditie editie = _editieRepository.GetByIdWithTickets(id); ViewData["editieName"] = editie.Naam; ViewData["amountTicketsSold"] = editie.Tickets.Count; ViewData["amountCheckedIn"] = editie.GetAmountCheckedIn(); return(View(new TicketBarcodeVerenigingViewModel(_verenigingRepository.GetById(verenigingId)))); }
public IActionResult CheckIn(int id) { McEditie editie = _editieRepository.GetByIdWithTickets(id); ViewData["editieName"] = editie.Naam; ViewData["amountTicketsSold"] = editie.Tickets.Count; ViewData["amountCheckedIn"] = editie.GetAmountCheckedIn(); return(View()); }