public async Task <IActionResult> sendEmailRecoverPassword() { User user = await _userManager.FindByNameAsync("Duke"); var rToken = _userManager.GeneratePasswordResetTokenAsync(user).Result; var urlToken = Url.Action("recoverPassword", "Values", new { userId = user.Id, token = rToken }, protocol: HttpContext.Request.Scheme); await _sendEmail.sendEmailRecoverPassword(user, "Recuperação de Senha", urlToken); return(Ok()); }