Beispiel #1
0
 private BhMergerItem MapDtoToModel(BhMergerItemDto dto, BhMergerItem model)
 {
     model.BhTransactionDate = dto.BhTransactionDate;
     model.BhTransactionId = dto.BhTransactionId;
     model.TickerSymbol = dto.TickerSymbol;
     model.SecurityId = dto.SecurityId;
     model.Shares = dto.Shares;
     model.Ratio = dto.Ratio;
     model.CashPerShare = dto.CashPerShare;
     model.CashRecieved = dto.CashRecieved;
     model.CostBasisSplit = dto.CostBasisSplit;
     model.TransactionApplied = dto.TransactionApplied;
     return model;
 }
Beispiel #2
0
 //BhMergerItem
 public BhMergerItemViewModel MapToViewModel(BhMergerItemDto model)
 {
     return new BhMergerItemViewModel
     {
         Id = model.Id,
         BhTransactionDate = model.BhTransactionDate,
         BhTransactionId = model.BhTransactionId,
         TickerSymbol = model.TickerSymbol,
         SecurityId = model.SecurityId,
         Shares = model.Shares,
         Ratio = model.Ratio,
         CashPerShare = model.CashPerShare,
         CashRecieved = model.CashRecieved,
         CostBasisSplit = model.CostBasisSplit,
         TransactionApplied = model.TransactionApplied,
     };
 }