public ActionResult Index() { var noticias = bo.SelectAll().ToList(); MenuDAO menuDAO = new MenuDAO(); ViewBag.Menus = menuDAO.Lista(); return View(noticias); }
// //Menu vertical public ActionResult Index() { MenuDAO menuDAO = new MenuDAO(); ViewBag.Menus = menuDAO.Lista(); 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(); }