I recently inherited an ASP.NET MVC project. In that project, the developer is using async
everywhere. I'm trying to assess if its a good idea or not. Specifically, I'm reviewing the controller code at the moment.
In the controllers, the developer wrote the stuff like the following:
public async Task<ActionResult> Index()
{
return View();
}
Is there any advantage to this instead of the traditional version:
public ActionResult Index()
{
return View();
}
I could understand using async
if await
was used in the controller code. A lot of times, its not being used though. Is there any justification for this approach?