public string UpdatePaymentLogs(PaymentLog _pL) { string Trxtoken = _pL.TrxToken; string ResponseCode = _pL.ResponseCode; string RespDescrip = _pL.ResponseDescription; try { var original = db.PaymentLogs.Find(_pL.ReferenceNumber); if (original != null) { // original.TrxToken = _pL.TrxToken; original.TrnDate = _pL.TrnDate; original.ResponseCode = _pL.ResponseCode; original.ResponseDescription = _pL.ResponseDescription; db.SaveChanges(); } return(original.ID.ToString()); } catch (Exception ex) { return(null); } }
public void InitiatePaymentLog(PaymentLog _pL) { try { db.PaymentLogs.Add(_pL); db.SaveChanges(); } catch (Exception ex) { //WebLog.Log(ex.Message.ToString()); } }
public string updateRequeryPaymentLog(PaymentLog _pL) { try { var original = db.PaymentLogs.Find(_pL.ReferenceNumber); if (original != null) { original.ResponseCode = "00"; original.ResponseDescription = "Successful"; db.SaveChanges(); } return(original.ID.ToString()); } catch (Exception ex) { return(ex.Message.ToString()); } }