public IStockTickerContentViewModel CreateContent(StockDetailModel stock)
        {
            if (stock == null)
            {
                return this.resolutionRoot.Get<INewsViewModel>();
            }

            return this.resolutionRoot.Get<IStockDetailViewModel>();
        }
        public IStockTickerContentViewModel CreateContent(StockDetailModel detailModel)
        {
            // NOTE: When no detail model is present the news model is provided
            if (detailModel == null)
            {
                return this.resolutionRoot.Get<INewsViewModel>();
            }

            return this.resolutionRoot.Get<IStockDetailViewModel>(new { detailModel });
        }
Ejemplo n.º 3
0
 public StockDetailViewModel(StockDetailModel detailModel)
 {
     this.Model = detailModel;
 }