title: Call an Angular Route from ASP.NET WEB API
body: <p>I have configured my application to send a confirmation Email to the user after registration. After the registration is completed the user will see a page that is saying you need to confirm you Email:</p>
  
  <pre><code>&lt;div *ngIf="!emailConfirmed"&gt;
    &lt;p&gt; Please activate your account by clicking the relevant link in your Email &lt;/p&gt;
  &lt;/div&gt;
  
  &lt;div *ngIf="emailConfirmed"&gt;
    &lt;p&gt;
     Your Email is now confirmed, please click the below button to Log-In.
    &lt;/p&gt;
    &lt;a class="btn btn-md btn-success btn-color" [routerLink]="['/login']"&gt;
      Sign In
    &lt;/a&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And <code>emailConfirmed</code> is just a simple variable that I have defined in the emailConfirmed's typescript relevant file:</p>
  
  <pre><code>export class EmailConfirmed {
    public emailConfirmed: boolean;
  }
  </code></pre>
  
  <p>After the user clicks on the link in his/her Email, his/her account will be verified and then the application will be redirected to the <code>ConfirmEmail</code> page again using the below code:</p>
  
  <pre><code>[HttpGet]
  [Route("ConfirmEmail", Name = "ConfirmEmailRoute")]
  public async Task&lt;IActionResult&gt; ConfirmEmail(string userId = "", string code = "")
  {
      //....
      IdentityResult result = await UserManager.ConfirmEmailAsync(userId, code);
      if (result.Succeeded)
      {
          return Redirect("http://localhost:5000/emailconfirmed");
      }
  }
  </code></pre>
  
  <p>Now the question is: I don't know how can I set the <code>emailConfirmed</code> variable of <code>EmailConfirmed</code> component to true from WEB API and in the <code>return Redirect</code> line, in order the user see the second message this time? Also I doubt that I have chosen the best way to redirect the application to an Angular route using the <code>return Redirect("http://localhost:5000/emailconfirmed");</code> line.</p>