Ejemplo n.º 1
0
 public PaymentResultViewModel(PaymentResultErrorCode errorCode, int transactionid = 0, long amount = 0)
 {
     ErrorCode     = errorCode;
     TransactionId = transactionid;
     Amount        = amount;
     Status        = errorCode == PaymentResultErrorCode.ChoHeThongDuyetRutTien ? TransactionStatus.Processing : TransactionStatus.Error;
 }
Ejemplo n.º 2
0
 public PaymentResultViewModel(PaymentResultErrorCode errorCode, int transactionid = 0, long amount = 0)
 {
     ErrorCode     = errorCode;
     TransactionId = transactionid;
     Amount        = amount;
     Status        = TransactionStatus.Error;
 }