            _eventStore = eventStore ?? throw new ArgumentNullException(nameof(eventStore));
        }
       
        public IActionResult OnGet(int eventId)
        {
            var eventFromStore = _eventStore.GetById(eventId);
            if (eventFromStore == null)
            {
                return RedirectToPage("./NotFound");
            }