title: get Harware address or get unique id from device
body: <p>I have found the following to my mvc controller. But how will I get the result in my cshtml? anyone have an idea?</p>
  
  <pre><code>  private string GetMacAddress()
          {
          string macAddresses = string.Empty;
  
          foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces())
              {
              if (nic.OperationalStatus == OperationalStatus.Up)
                  {
                  macAddresses += nic.GetPhysicalAddress().ToString();
                  break;
                  }
              }
  
          return macAddresses;
          }
  </code></pre>