title: Redirect after confirmation in ASP.NET WEP API controller
body: <p>I have web api account controller where I confirm an user email</p>
  
  <pre><code>    [System.Web.Http.AllowAnonymous]
      [System.Web.Http.HttpGet]
      [System.Web.Http.Route("ConfirmEmail", Name = "ConfirmEmailRoute")]
      public async Task&lt;IHttpActionResult&gt; ConfirmEmail(string userId = "", string code = "")
      {
          if (string.IsNullOrWhiteSpace(userId) || string.IsNullOrWhiteSpace(code))
          {
              ModelState.AddModelError("", "User Id and Code are required");
              return BadRequest(ModelState);
          }
  
          IdentityResult result = await this.AppUserManager.ConfirmEmailAsync(userId, code);
  
          if (result.Succeeded)
          {
              return Ok();
          }
          else
          {
              return GetErrorResult(result);
          }
      }
  }
  </code></pre>
  
  <p>This method is called when user clicks the confirmation link from email. After that I want to redirect it to "ConfirmidSuccessfully" page</p>
  
  <p>In MVC we could do it like:</p>
  
  <pre><code>return View("ConfirmidSuccessfully");
  </code></pre>
  
  <p>There are other ways to redirect like: </p>
  
  <pre><code>var response = Request.CreateResponse(HttpStatusCode.Moved);
  response.Headers.Location = new Uri("/ConfirmidSuccessfully");
  return response;
  </code></pre>
  
  <p>Actually there are 2 questions:
  Is it good to redirect from web api method according to WEB API, or there's better approach
  What is the most appropriate way to do it</p>