title: c# webapi with query string
body: <p>I have WebApi baed web service like:</p>
  
  <pre><code>public class ControllerName : ApiController
  {
      [Route("api/ControllerName/{p1}/{p2}/{p3}/{p4}/{p5}")]
      public string GetItemByNameAndId(string p1, string p2, string p3, string p4, string p5)
      {
  
      }
  }
  </code></pre>
  
  <p>This type request is working: </p>
  
  <blockquote>
    <p>host/api/ControllerName/1/2/3/4/5</p>
  </blockquote>
  
  <p>But I want this type of request: </p>
  
  <blockquote>
    <p>host/api/ControllerName/&amp;p1=1&amp;p2=2&amp;p3=3&amp;p4=4&amp;p5=5</p>
  </blockquote>
  
  <p>and I receive error like:</p>
  
  <blockquote>
    <p>A potentially dangerous Request.Path value was detected from the
    client (&amp;). Which steps must be followed? Any changes in config files,
    any attributes etc.</p>
  </blockquote>
  
  <p>Thanks for your time.</p>