public async Task <IActionResult> ChangePassword() { var user = await _userManager.GetUserAsync(User); if (user == null) { throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); } var hasPassword = await _userManager.HasPasswordAsync(user); var model = new ChangePasswordViewModel { StatusMessage = StatusMessage }; return(View(model)); }
public async Task CheckNotification(int notificationId) { var userProfileId = _inkettUserManager.GetProfileId(User); var userId = _inkettUserManager.GetUserId(User); await _notificationService.CheckNotification(notificationId); }