Ejemplo n.º 1
0
 public ActionResult NewBuyAndHoldSplit(BuyAndHoldSplitViewModel model)
 {
     //var dto = MapSplitViewModelToDto(model);
     //var buyAndHoldTransactionDto = _buyAndHoldService.UpdateBuyAndHoldSplit(dto);
     ////model = MapTransactionDtoToTransactionViewModel(transaction);
     return View(model);
 }
Ejemplo n.º 2
0
        private BuyAndHoldSplitDto MapSplitViewModelToDto(BuyAndHoldSplitViewModel model)
        {
            var dto = new BuyAndHoldSplitDto
            {

                Id = model.Id,
                SplitDate = model.SplitDate,
                BuyAndHoldTransactionId = model.BuyAndHoldTransactionId,
                Symbol = model.Symbol,
                SecurityId = model.SecurityId,
                Type = model.Type,
                NumberShares = model.NumberShares,
                SplitRatio = model.SplitRatio,
                NewShares = model.NewShares,
                ExistingShares = model.ExistingShares,
                Reverse = model.Reverse,
                Adjust = model.Adjust,
                ValidFrom = model.ValidFrom,
                ValidTo = model.ValidTo,
                Notes = model.Notes,
                //Url1 = model.Url1,
                //Url2 = model.Url2,
                //Url3 = model.Url3
            };

            return dto;
        }