Ejemplo n.º 1
0
        public ActionResult Index()
        {
            MarketPriceService service = new MarketPriceService();
             NewsService newsSvr = new NewsService();
            Category category =  null;

            List<News> news = newsSvr.GetLastestMarketInfoNews(out category);

             HomePageModel model = new HomePageModel()
             {
                 LiveMarketPrices = service.GetLivePrices(),
                 LastestMarketInfoNews = news,
                 MarketInfoCategory = category,
             };

             return View(model);
        }