public async Task RegisterAsync()
        {
            var registrationResource = new CreateRegistrationResource()
            {
                EventId = _event.Id
            };

            await RegistrationService.CreateRegistrationAsync(registrationResource);

            _event = await EventService.GetEventByIdAsync(Id);
        }
 protected override async Task OnInitializedAsync()
 {
     try
     {
         _event = await EventService.GetEventByIdAsync(Id);
     }
     catch (AccessTokenNotAvailableException exception)
     {
         exception.Redirect();
     }
 }