How to call an async service function from an ASP .NET razor *.cshtml master page in Full .NET Framework 4.7.2
16 June, 2021
0 Comments
1 category
If you need to call an async C# service method from an ASP .NET razor page, you can use the System.Threading.Tasks.Task.Run method. Assuming we have a C# service class “MyService.cs” and this service contains