Esempio n. 1
0
 public static BatchedCashout ToContract(this BatchedCashoutValueType domain)
 {
     return(new BatchedCashout
     {
         OperationId = domain.CashoutId,
         ClientId = domain.ClientId,
         ToAddress = domain.ToAddress,
         Amount = domain.Amount
     });
 }
 public static BatchedCashoutEntity FromDomain(BatchedCashoutValueType domain)
 {
     return new BatchedCashoutEntity
     {
         OperationId = domain.CashoutId,
         ClientId = domain.ClientId,
         DestinationAddress = domain.ToAddress,
         Amount = domain.Amount,
         IndexInBatch = domain.IndexInBatch,
         AddedToBatchAt = domain.AddedToBatchAt
     };
 }