public async Task <IActionResult> OnPostAddSessionToAttendeeAsync(int sessionId)
        {
            await _apiClient.AddSessionToAttendeeAsync(User.Identity.Name, sessionId);

            var session = await _apiClient.GetSessionAsync(sessionId);

            return(RedirectToPage(new { session.ConferenceId, day = session.StartTime?.DayOfWeek, trackId = session.TrackId }));
        }
Beispiel #2
0
        public async Task <IActionResult> OnPostAsync(int sessionId)
        {
            await _apiClient.AddSessionToAttendeeAsync(User.Identity.Name, sessionId);

            return(RedirectToPage());
        }