Is it possible to await on tasks in Razor .cshtml views?
By default it complains that it can only be used in methods marked with async so I
You can await calls in razor pages? I have a Blazor app and most of my methods are async:
Razor page:
This is a MatBlazor FloatingActionButton which calls the life time cycle event OnInitializedAsync()
C# Code:
protected override async Task OnInitializedAsync()
{
// Do something like get data when the form loads
}