public async Task <IActionResult> DeleteConfirmed(int id) { var user = await _context.Users.FindAsync(id); string result = userApi.DeleteUserData(id); _context.Users.Remove(user); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); }