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)); }
public async Task AdminPwReset(AdminPwResetDto adminPwResetDto) { await _userResolverService.AdminResetPassword(adminPwResetDto.UserName, adminPwResetDto.Password); }