コード例 #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));
        }