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