Beispiel #1
0
 public static bool SaveTransactionLog(ITransactionLogAppService _tranService, TransactionLog tranLog)
 {
     try
     {
         _tranService.Add(tranLog);
         _tranService.Save();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }
Beispiel #2
0
 public static bool SaveTransactionLog(ITransactionLogAppService _tranService, string tranForm, string tranType, string id, string userName)
 {
     try
     {
         TransactionLog tranLog = new TransactionLog();
         tranLog.TranForm     = tranForm;
         tranLog.TranType     = tranType;
         tranLog.TranDateTime = DateTime.Now.ToString();
         tranLog.TranNo       = id;
         tranLog.UserName     = userName;
         _tranService.Add(tranLog);
         _tranService.Save();
         return(true);
     }
     catch (Exception ex)
     {
         return(false);
     }
 }