public async Task <IActionResult> OnGet(int conference_id) { conference = await ApiClient.GetConferenceAsync(conference_id); if (conference == null) { return(RedirectToPage("/Error")); } var response = ApiClient.GetSessionsByConference(conference.ID).Result; if (response is null || !response.Any()) { Sessions = new List <SessionResponse>() { } } ;