Ejemplo n.º 1
0
 public ActionResult Index()
 {
     NoticiaBO bo = new NoticiaBO();
     List<NoticiaEntidade> lst = bo.SelectAll().Where(p=>p.Tipo != 1).ToList();
     ViewBag.Noticias = lst;
     
     return View();
 }
Ejemplo n.º 2
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();
        }