示例#1
0
        public ActionResult Index()
        {
            //Get the model
            var objModel = GetHomeIndexModel(GetMyLocationId);

            //Set the Live
            ViewBag.IsLive = objModel.Highlights[0].IsLive.HasValue ? objModel.Highlights[0].IsLive.Value : false;

            //Recupera as 4 ultimas notícias que são exibidas na sidebar
            ViewBag.Lastest4News = Noticia.GetLastestNews(4).ToList();

            //Recuper as 5 ultimas notícias mais acessadas
            ViewBag.Popular5News = Noticia.GetMoreAccessedNews(null);

            return(View(objModel));
        }