public PartialViewResult Header() { ViewBag.Logo = systemInfoDAO.GetLogo(); ViewBag.TopMenus = menuDAO.GetTopMenus(); ViewBag.Categories = productCategoryDAO.GetAll(); ViewBag.SocialLinks = systemInfoDAO.GetSocialLink(); return(PartialView("Header")); }
// 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)); }