public bool updateStatus(int _recordID, CCSAFStatus _status, int _retrycount = -1) { if (retry_count < 0 && _status != CCSAFStatus.P) { CreditCardSAF _tempSAFInfo = GetCCSAFRecord(_recordID); _retrycount = _retrycount - 1; } CreditCardSAF _SAFInfo = new CreditCardSAF(); _SAFInfo.recordid = _recordID; _SAFInfo.is_processed = _status.ToString(); if (_status != CCSAFStatus.P) { } else { _SAFInfo.last_retry_time = "SYSDATE"; _SAFInfo.retry_count = _retrycount - 1; } bool updated = _SAFInfo.Update(); return(updated); }
public bool markAsProcessed() { CreditCardSAF _SAFInfo = new CreditCardSAF(); _SAFInfo.recordid = recordid; _SAFInfo.is_processed = CCSAFStatus.Y.ToString(); _SAFInfo.last_retry_time = "SYSDATE"; bool updated = _SAFInfo.Update(); return(updated); }
public bool updateStatus(CCSAFStatus _status) { CreditCardSAF _SAFInfo = new CreditCardSAF(); _SAFInfo.recordid = recordid; _SAFInfo.is_processed = _status.ToString(); if (_status == CCSAFStatus.P) { } else { _SAFInfo.last_retry_time = "SYSDATE"; _SAFInfo.retry_count = retry_count + 1; } bool updated = _SAFInfo.Update(); return(updated); }