ASP.NET Core async iactionresult I am new to async methods and am kinda confused how async is working so what i want for you to do is review this code and tell me does implementing async like this is meaningless
[Route(&quot;/Dev/ForceBufferUpdate&quot;)]
public async Task&lt;IActionResult&gt; BufferUpdate() 
{
    bool isAdministrator = await Task.Run(() =&gt; {
        return Security.IsAdministrator(Request);
    });

    if(!isAdministrator)
            return View(&quot;Error&quot;, &quot;You don't have permission!&quot;);

    await Task.Run(() =&gt; {
        LimitlessSoft.Buffer.Refresh();
    });

    return Redirect(&quot;/Dev&quot;);
}
This code is pointless since it creates async state machine while the code you execute is actually synchronous code.
So eventually you get a performance penalty for the creation of a state machine but no reward of asynchronous execution.
Consider using async and await when you're dealing with IO operations. Usually, such methods already provide asynchronous API. You can spot this as such methods return Task or Task&lt;T&gt;