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.
public void XYZ(int a, int b)
{
var x = Request.Headers.UserAgent;
}
But unable to get the proper information.