public async Task <IActionResult> OnGet(int id) { Speaker = await _apiClient.GetSpeakerAsync(id); if (Speaker == null) { return(NotFound()); } return(Page()); }
public async Task <IActionResult> OnGetAsync(int speakerId) { Speaker = await conferenceApiClient.GetSpeakerAsync(speakerId); if (Speaker == null) { return(NotFound()); } return(Page()); }
public async Task OnGet(int id) { Speaker = await _apiClient.GetSpeakerAsync(id); }