public PartialViewResult BigMenu() { string lang = HttpContext.Session["CurrentCulture"].ToString(); var iplMenu = new MenuDao(); var model = iplMenu.ListByGroup(1, lang); return(PartialView(model)); }
// GET: Home public ActionResult Index() { var newsDao = new NewsDao(); //ViewBag.News = newsDao.ListAllNews(); var cateDao = new CategoryDao(); ViewBag.Categories = cateDao.ListCategoryByType(); ViewBag.NewsStyle = newsDao.ListNewsByType(1); ViewBag.NewsTravel = newsDao.ListNewsByType(2); ViewBag.NewsVehicle = newsDao.ListNewsByType(3); ViewBag.AllNews = newsDao.ListAllNews(); var menuDao = new MenuDao(); ViewBag.Menu = menuDao.ListByGroup(); return(View()); }