public async Task <IActionResult> OnPostAsync(int?conference_id) { if (conference_id == null) { return(NotFound()); } var result = ApiClient.DeleteConferenceAsync(conference_id.Value).Result; if (result == false) { return(RedirectToPage("/Error")); } await IdentityClient.DeleteUserOwnership(User.FindFirst(System.Security.Claims.ClaimTypes.NameIdentifier).Value, conference_id.Value); return(RedirectToPage("/Index")); }