Here is my action method to delete a user:
I feel like it is blocking since I am using user.Result
to pass the actual user object from one async result to the next async method. Is there a better way to do this?
// POST: Users/Delete/5
[HttpPost, ActionName("Delete")]
[ValidateAntiForgeryToken]
public async Task<IActionResult> DeleteConfirmed(int id)
{
var user = _userManager.FindByIdAsync(id.ToString());
var result = await _userManager.DeleteAsync(user.Result);
return RedirectToAction("Index");
}