Пример #1
0
 public ActionResult Index()
 {
     var noticias = bo.SelectAll().ToList();
     MenuDAO menuDAO = new MenuDAO();
     ViewBag.Menus = menuDAO.Lista();
     return View(noticias);
 }
Пример #2
0
        //
        //Menu vertical

        public ActionResult Index()
        {           
            MenuDAO menuDAO = new MenuDAO();
            ViewBag.Menus = menuDAO.Lista();

            return View();
        }
Пример #3
0
        public ActionResult Index()
        {
            NoticiaBO bo = new NoticiaBO();
            List<NoticiaEntidade> lst = bo.SelectAll().Where(p => p.Tipo != 1).ToList();
            ViewBag.Noticias = lst;

            MenuBO bom = new MenuBO();
           List<MenuEntidade> ent = bom.SelectAll().ToList();
            MenuDAO menuDAO = new MenuDAO();
            ViewBag.Menus = menuDAO.Lista();

     

            return View();
        }