예제 #1
0
        public IActionResult InitializeLayout()
        {
            CurrentUserEmail = _layoutService.GetCurrentUserEmail();
            if (string.IsNullOrEmpty(CurrentUserEmail))
            {
                return(Redirect(PhpAddress + "/auth/login"));
            }

            Theme            = _layoutService.GetTheme();
            ItemsInCartCount = _layoutService.GetItemsInBasketCount().ToString();
            return(Page());
        }