Is it possible to await on tasks in Razor .cshtml views?
await
By default it complains that it can only be used in methods marked with async so I
async
No, that's not possible and you shouldn't need to do it anyway. Razor views should contain markup and at most some helper call. async/await belongs to your backend logic.