title: Asp.net core passing multiple parameter + web api
body: <p>I am submitting a form that passes three values to the controller, which are email, fullname and id fields. </p>
  
  <pre><code> @using (Html.BeginForm("SubmitResult", "TestAPI", FormMethod.Post, new { id = "postEmailForm" }))    
  {
      &lt;div id="details-container"&gt;
          &lt;input type="text" name="email" /&gt;
          &lt;input type="text" name="fullName" /&gt;
          &lt;input type="text" name="studentId" /&gt;
  
          &lt;button type="submit" id="send"&gt;Send&lt;/button&gt;
      &lt;/div&gt;
  }   
  </code></pre>
  
  <p><strong>Controller</strong>:</p>
  
  <pre><code>  [HttpPost("SubmitResult/{email}/{fullName}/{studentId}")]
      [Authorize(Roles = "Admin, Shop")]
      public IActionResult SubmitResult(string email, string fullName, long? studentId)
      {
      }
  </code></pre>
  
  <p>However, when I click on submit button, it throws an error message in the console.</p>
  
  <blockquote>
    <p>OPTIONS <a href="https://localhost:50138/TestAPI/SubmitResult" rel="nofollow noreferrer">https://localhost:50138/TestAPI/SubmitResult</a> 
    net::ERR_SSL_PROTOCOL_ERROR. </p>
  </blockquote>
  
  <p><strong>Headers:</strong></p>
  
  <blockquote>
    <p>Request URL: <a href="https://localhost:50138/TestAPI/SubmitResult" rel="nofollow noreferrer">https://localhost:50138/TestAPI/SubmitResult</a> </p>
    
    <p>Referrer Policy: no-referrer-when-downgrade</p>
  </blockquote>
  
  <p>How do I properly decorate the attribute in the controller, so I can pass multiple parameters to test API using <a href="https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en" rel="nofollow noreferrer">Postman</a>?</p>
  
  <p>I was expecting something like below to work for testing.</p>
  
  <blockquote>
    <p><a href="http://localhost:50138/api/TestAPI/SubmitResult/test@gmail.com/MikeShawn/2" rel="nofollow noreferrer">http://localhost:50138/api/TestAPI/SubmitResult/test@gmail.com/MikeShawn/2</a></p>
  </blockquote>