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