public static CardTransactionHistoryWM Parse(UserPaymentHistoryLog source) { return(new CardTransactionHistoryWM { TransactionType = source.TransactionType, LogHistory = source.LogHistory, LogDetail = source.LogDetail }); }
public void MergeWith(UserPaymentHistoryLog uphl) { if (LogHistory != uphl.LogHistory) { throw new InvalidOperationException("Cannot merge if LogHistory dates don't match"); } TransactionType = uphl.TransactionType; LogDetail = string.Concat(LogDetail, uphl.LogDetail); }