示例#1
0
        public ActionResult _Header()
        {
            ContextModel    context = _contextService.GetContext();
            HeaderViewModel header  = _sharedViewService.GetHeader(context);

            header.Faqs = _faqService.GetInternalFaqs();
            return(PartialView(header));
        }
示例#2
0
        public ActionResult PlantManager()
        {
            _contextService.InitializePlantManagerLevel();

            ContextModel    context = _contextService.GetContext();
            HeaderViewModel header  = _sharedViewService.GetHeader(context);

            header.Faqs = _faqService.GetInternalFaqs();
            _contextService.SetActualLanguage(CultureInfo.CurrentCulture.Name);

            return(View(header));
        }
示例#3
0
        // GET: UserSetting
        public ActionResult Index()
        {
            if (!_contextService.InitializeUserSettingLevel())
            {
                return(RedirectToAction("Logout", "Account", new { returnUrl = string.Empty, exception = 6 }));
            }

            var context = _contextService.GetContext();
            var header  = _sharedViewService.GetHeader(context);

            header.Faqs = _faqService.GetInternalFaqs();
            _contextService.SetActualLanguage(CultureInfo.CurrentCulture.Name);
            return(View(header));
        }