title: Create a link to redirect to the Web site Controller ActionResult from Web API
body: <p>I need to send an email to the user for <strong>resetting password</strong>. Which contains a link to open the Password Reset page in Web site.
  Both website &amp; web api are in same domain.But different solutions.</p>
  
  <p>I have created a link in web api.</p>
  
  <pre><code>var callbackUrl = Url.Link("ResetPassword", new { Controller = "Account", code = token });
  </code></pre>
  
  <p>But when it tested on postman it shows <em>'ResetPassword' could not be found in the route collection.</em>
  There is ResetPassword ActionResult in Account controller of Website.</p>
  
  <pre><code>[AllowAnonymous]
  [Route(Name="ResetPassword")]
  public ActionResult ResetPassword(string code)
  {
       return code == null ? View("Error") : View();
  }
  </code></pre>
  
  <p>The <code>RegisterRoutes</code> method is,</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
      {
          routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
          routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
          );
      }
  </code></pre>
  
  <p>I have not yet deployed the solution.
  Will it work on deployment?</p>