Beispiel #1
0
        private static ICollection <TransactionHistory> toTransactionHistoryEntity(ICollection <TransactionHistoryDTO> dtos)
        {
            ICollection <TransactionHistory> th = new List <TransactionHistory>();

            if (dtos == null)
            {
                return(th);
            }

            foreach (TransactionHistoryDTO dto in dtos)
            {
                th.Add(TransactionHistoryConverter.ToEntity(dto));
            }

            return(th);
        }
Beispiel #2
0
        private static ICollection <TransactionHistoryDTO> toTransactionHistoryDTO(ICollection <TransactionHistory> entities)
        {
            ICollection <TransactionHistoryDTO> th = new List <TransactionHistoryDTO>();

            if (entities == null)
            {
                return(th);
            }

            foreach (TransactionHistory en in entities)
            {
                th.Add(TransactionHistoryConverter.ToDTO(en));
            }

            return(th);
        }