示例#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();
 }
示例#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();
        }