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")); }
public ActionResult Create() { //get contact info ViewBag.ContactInfo = systemInfoDAO.GetContactInfo(); return(View()); }
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")); }
// GET: Admin/SystemInfo public ActionResult Index() { var socialLinks = systemInfoDAO.GetSocialLink(); var contactInfo = systemInfoDAO.GetContactInfo(); var model = new SystemInfoViewModel() { Logo = systemInfoDAO.GetLogo(), Brand = systemInfoDAO.GetBrand(), RecruitmentInfo = systemInfoDAO.GetRecruitmentInfo(), Facebook = socialLinks.Facebook, Linkedin = socialLinks.Linkedin, Youtube = socialLinks.Youtube, Hotline = contactInfo.Hotline, Email = contactInfo.Email, Website = contactInfo.Website, CompanyFullName = contactInfo.CompanyFullName, Headquater = contactInfo.Headquater }; return(View(model)); }