Example #1
0
        public ActionResult Beta()
        {
            return RedirectToAction("Index");
            MarketPriceService service = new MarketPriceService();
            BetaHomeModel model = new BetaHomeModel()
            {
                //LiveMarketPrices = service.GetPaged(p => p.MarketPriceID > 0, new IOrderByClause<MarketPrice>[] { new OrderByClause<MarketPrice, DateTime>(p => p.UpdateDateTime.Value, SortDirection.Decending) }, 1, 50)
                LiveMarketPrices = service.GetLivePrices()
            };

            return View(model);
        }
Example #2
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);
        }