@*
Note that we are using the JavaScript onclick parameter not the @onclick
The JavaScript file JSToStaticNET.js is included in the _layout/index page.
*@
@code {
[JSInvokable("NameOfTheMethod")]
public static Task GetAMessageFromNET()
{
return Task.FromResult("This is a message from .NET");
}
}