Guest User

Untitled

a guest
Jan 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. ```
  2. {
  3. private readonly UserManager<ApplicationUser> _userManager;
  4. public AccountController(..., UserManager<ApplicationUser>
  5. userManager) {
  6. this._userManager = userManager;
  7. ....
  8. }
  9.  
  10. public async Task<IActionResult> UpdateUser() {
  11. ApplicationUser currentUser = await _userManager.GetUserAsync(User);
  12. ...
  13. }
  14. }
  15. ```
Add Comment
Please, Sign In to add comment