Ejemplo n.º 1
0
        public ActionResult GetContactHeader()
        {
            var systemSetting = _systemSettingService.GetEnableOrDisable();

            var systemSettingLocalized = systemSetting.ToModel();

            return(PartialView(systemSettingLocalized));
        }
Ejemplo n.º 2
0
        public ActionResult Index()
        {
            var systemSetting         = _systemSettingService.GetEnableOrDisable();
            var systemSettingLocalize = systemSetting.ToModel();

            //var systemSetting = _systemSettingService.Get(x => x.Status == 1, true);
            if (systemSettingLocalize != null)
            {
                ViewBag.Title       = systemSettingLocalize.MetaTitle ?? systemSettingLocalize.Title;
                ViewBag.KeyWords    = systemSettingLocalize.MetaKeywords;
                ViewBag.SiteUrl     = Url.Action("Index", "Home", new { area = "" });
                ViewBag.Description = systemSettingLocalize.Description;
                ViewBag.Image       = Url.Content(string.Concat("~/", systemSettingLocalize.LogoImage));
                ViewBag.Favicon     = Url.Content(string.Concat("~/", systemSettingLocalize.FaviconImage));
            }

            return(View());
        }