public BhSpinOffItemDto MapToDto(BhSpinOffItemViewModel model) { return new BhSpinOffItemDto { Id = model.Id, BhTransactionDate = model.BhTransactionDate, BhTransactionId = model.BhTransactionId, TickerSymbol = model.TickerSymbol.IsNullOrEmpty() ?string.Empty : model.TickerSymbol.ToUpper(), SecurityId = model.SecurityId, Shares = model.Shares, Ratio = model.Ratio, //CashPerShare = model.CashPerShare, //CashRecieved = model.CashRecieved, CostBasisSplit = model.CostBasisSplit, TransactionApplied = model.TransactionApplied, }; }
public ActionResult AddSpinOffItem() { var model = new BhSpinOffItemViewModel(); return PartialView("_SpinOffItem", model); }