Esempio n. 1
0
        public async Task <IActionResult> AdminPwReset([Bind("UserName,Password")] AdminPwResetDto adminPwResetDto)
        {
            if (ModelState.IsValid)
            {
                await _service.AdminPwReset(adminPwResetDto);

                return(RedirectToAction(nameof(Index)));
            }
            var adminPwResetView = _service.GetAdminPwResetView(adminPwResetDto.UserName);

            return(View(adminPwResetView));
        }
Esempio n. 2
0
 public async Task AdminPwReset(AdminPwResetDto adminPwResetDto)
 {
     await _userResolverService.AdminResetPassword(adminPwResetDto.UserName, adminPwResetDto.Password);
 }