title: Using Web API redirect to angular html page
body: <p>I want to redirect an HTML page using WEB API. I'm using ASP.Net Web API as a back-end and a front-end is on Angular 5. Here is my code. Here is my updated API source code.</p>
  
  <pre><code>[System.Web.Http.HttpGet]
  public string[] Payment(string uri)
  {
      try
      {
          RegistrationRequestX reg = new RegistrationRequestX();
          reg.Customer = "Test Api";
          reg.Channel = Channels.Web;
          reg.Language = "EN";
          reg.Amount = 10;
          reg.OrderID = "1234";
          reg.OrderInfo = "test info";
          reg.OrderName = "testing order";
          string retPath = uri;
          retPath = retPath.Replace("payment", "confirmation");
          reg.ReturnPath = retPath;
          RegistrationResponseX res = new RegistrationResponseX();
          res = client.Register(reg);
          client.Close();
          string[] sess = new string[2];
          sess[0] = paymentPortalURL;
          sess[1] = transactionID;
          return sess;
      }
      catch (Exception)
      {
          throw;
      }
  }
  </code></pre>