title: How to detect device information like OS, browser, device name etc. in asp.net web api?
body: <p>I am creating a ASP.NET Web API.
  I want to detect device information of consumer of my web service.
  Currently, I am trying to use Request.Headers.UserAgent to get device related information.</p>
  
  <pre><code>public void XYZ(int a, int b)
  {            
          var x = Request.Headers.UserAgent;
  }
  </code></pre>
  
  <p>But unable to get the proper information.</p>