Example #1
0
 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;
     }
 }
Example #2
0
 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;
     }
 }