public async Task <IActionResult> Edit(string id) { IdentityUser user = _userManager.GetById(id); if (user == null) { return(NotFound()); } EditUserViewModel model = new EditUserViewModel { Id = user.Id, Email = user.Email }; return(PartialView(model)); }