I'm unable to redirect to a new view from a Link sended to an email

Viewed 29

I am wanting to do a password recovery using email, in the view I enter the email, valid that it exists, and an email is sent to you with a link that when you click on it, redirects you to the view to change the password. This all works fine, but the link I send "doesn´t exist".

Cannot find this page (localhost)No web page found for address https://localhost:1111/ChangePasswords/ChangePassword/

My controller: public class ChangePasswords: Controller

View:

public ActionResult ChangePassword()
    {
        return View();
    }

Email:

 string urlDomain = "https://localhost:1111/";
 string url = urlDomain + "/ChangePasswords/ChangePassword/;
 builder.HtmlBody = "<p>RECOVER PASSWORD</p><br>" +
                    "<a href='" + url + "'>Click to recover</a>";

enter image description here

enter image description here

0 Answers
Related