public static string GetMac(string Ip) { try { return(MacResolver.GetRemoteMAC(Ip)); } catch (Exception ex) { return(string.Empty); } }
public static string GetMac(HttpRequestMessage request) { try { var clientIP = GetClientIp(request); return(MacResolver.GetRemoteMAC(clientIP)); } catch (Exception ex) { return(string.Empty); } }