Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            var userId             = this.User.Identity.GetUserId <int>();
            var passwordChangeDate = await _usedPasswordsService.GetLastUserPasswordChangeDateAsync(userId);

            return(View(model: new ChangePasswordViewModel
            {
                LastUserPasswordChangeDate = passwordChangeDate
            }));
        }
        public async Task <IActionResult> Index()
        {
            var t                  = this.User.Identity.GetUserId();
            var userId             = Guid.Parse(t);
            var passwordChangeDate = await _usedPasswordsService.GetLastUserPasswordChangeDateAsync(userId).ConfigureAwait(false);

            return(View(model: new ChangePasswordViewModel
            {
                LastUserPasswordChangeDate = passwordChangeDate
            }));
        }