public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = new TopBarSchedulerSwitchViewModel
            {
                CurrentSchedulerHeader = await _schedulerManager.GetCurrentScheduler(LocalSchedulerName),
                SchedulerHeaders       = await _schedulerManager.GetSchedulers()
            };

            return(View(model));
        }
        public async Task <IActionResult> Index()
        {
            SchedulerHeaderDto schedulerHeader = await _schedulerManager.GetCurrentScheduler(LocalSchedulerName);

            string cookieValue = Crypto.DesEncrypt(schedulerHeader.Name);

            Response.Cookies.Append(
                HybridConsts.SchedulerCookieName,
                cookieValue,
                new CookieOptions
            {
                Expires  = DateTime.UtcNow.AddYears(2),
                HttpOnly = true
            }
                );

            return(View());
        }