public PartialViewResult Footer()
 {
     ViewBag.Logo        = systemInfoDAO.GetLogo();
     ViewBag.BottomMenus = menuDAO.GetBottomMenus();
     ViewBag.SocialLinks = systemInfoDAO.GetSocialLink();
     ViewBag.ContactInfo = systemInfoDAO.GetContactInfo();
     ViewBag.MostViews   = postDAO.MostViews(1, 2);
     ViewBag.Recents     = postDAO.GetAllWithUserAndCategory().Skip(0).Take(2).ToList();
     return(PartialView("Footer"));
 }
Beispiel #2
0
 public PartialViewResult Footer()
 {
     ViewBag.Brand        = systemInfoDAO.GetBrand();
     ViewBag.Logo         = systemInfoDAO.GetLogo();
     ViewBag.BottomMenus  = menuDAO.GetBottomMenus();
     ViewBag.ContactInfo  = systemInfoDAO.GetContactInfo();
     ViewBag.SocialLinks  = systemInfoDAO.GetSocialLink();
     ViewBag.HotNews      = postDAO.GetAll(1, 10).Skip(0).Take(6).ToList();
     ViewBag.ContactInfo  = systemInfoDAO.GetContactInfo();
     ViewBag.Recruitments = recruitmentDAO.GetAllWithUser().Skip(0).Take(3).ToList();
     return(PartialView("Footer"));
 }