Beispiel #1
0
 public static void SaveDebitTransactionLog(DebitTransactionLog log)
 {
     try
     {
         using (var context = new InterswitchNameEnquiryEntities())
         {
             context.DebitTransactionLogs.Add(log);
             context.SaveChanges();
         }
     }
     catch (Exception ext)
     {
         Utils.LogError(ext, "Failed to create DebitTransactionLog ");
     }
 }
Beispiel #2
0
        public static DebitTransactionLog SearchDebitTransactionLogByTransactionId(string transactionId)
        {
            var log = new DebitTransactionLog();

            try
            {
                using (var context = new InterswitchNameEnquiryEntities())
                {
                    log = context.DebitTransactionLogs.FirstOrDefault(g => g.InterswitchTransactionId.Trim() == transactionId.Trim());
                }
            }
            catch (Exception ext)
            {
                Utils.LogError(ext, "Failed to retrieve DebitTransactionLog ");
            }
            return(log);
        }