I have a async controller in my asp.net core project.
I now wan to make the WaitingPopup show on cshtml when the async task is starting and running.
When the async task is completed, I want to make the WaitingPopup hide.
public async Task<ActionResult> WaitingPopupFeatures()
{
WaitingPopupProperties wp = new WaitingPopupProperties();
wp.ShowOnInit = true;
wp.AppendTo = ".cols-sample-area";
// Make WaitingPopup show
await Task.Run(async()=> {
//do something
});
// Make WaitingPopup hide
return View();
}