public static void Log(string type, string identifier, string notes) { try { IHC.TransactionLog logEntry = new IHC.TransactionLog(); logEntry.TransactionComputer = HttpContext.Current.Server.MachineName.ToString(); logEntry.TransactionIdentifier = identifier; logEntry.TransactionNotes = notes; logEntry.TransactionType = type; logEntry.TransactionUser = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); logEntry.Save(); } catch (Exception ex) { throw ex; } }
public static void Log(string type, string identifier, string notes) { try { IHC.TransactionLog logEntry = new IHC.TransactionLog(); logEntry.TransactionComputer = HttpContext.Current.Server.MachineName.ToString(); logEntry.TransactionIdentifier = identifier; logEntry.TransactionNotes = notes; logEntry.TransactionType = type; logEntry.TransactionUser = System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString(); logEntry.Save(); } catch (Exception ex) { throw ex; } }