Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- {
- private readonly UserManager<ApplicationUser> _userManager;
- public AccountController(..., UserManager<ApplicationUser>
- userManager) {
- this._userManager = userManager;
- ....
- }
- public async Task<IActionResult> UpdateUser() {
- ApplicationUser currentUser = await _userManager.GetUserAsync(User);
- ...
- }
- }
- ```
Add Comment
Please, Sign In to add comment