protected override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     _identity = _identityHandler.GetIdentity(Request);
     Debug.WriteLine($"App-Debug: {(nameof(PaymentsController))} {nameof(OnActionExecuting)} Recieves Identity {_identity}");
     if (!MvcApplication.NavItems.Any())
     {
         MvcApplication.NavItems = _siteConnector.GetMenuTemplates <Dictionary <string, NavItem> >(
             SupportServices.Portal, _identity,
             "api/navigation/templates") ?? new Dictionary <string, NavItem>();
     }
     base.OnActionExecuting(filterContext);
 }
Exemple #2
0
        protected override void OnActionExecuting(ActionExecutingContext filterContext)
        {
            _identity = (Request.Cookies[_cookieName] ?? new HttpCookie(_cookieName)).Value ?? _identity;
            Debug.WriteLine($"App-Debug: {(nameof(ChallengeController))} {nameof(OnActionExecuting)} Recieves Identity {_identity}");

            if (!MvcApplication.NavItems.Any())
            {
                MvcApplication.NavItems = _siteConnector.GetMenuTemplates <Dictionary <string, NavItem> >(
                    SupportServices.Portal, _identity,
                    "api/navigation/templates") ?? new Dictionary <string, NavItem>();
            }
            base.OnActionExecuting(filterContext);
        }