public async Task <bool> Confirm(string message) { return(await _jsRuntime.Confirm(message).ConfigureAwait(false)); }
public static async ValueTask <bool> Confirm(this IJSRuntime js, string message) { await js.InvokeVoidAsync("console.log", "Example Message"); return(await js.Confirm(message)); }