Esempio n. 1
0
        public override void OnActionExecuting(ActionExecutingContext context)
        {
            var person = _loggedInHelper.GetLoggedInPerson();

            if (string.IsNullOrEmpty(person.Email))
            {
                context.Result = new RedirectResult(_configuration.GetMyAccountUrl() + "?returnUrl=" + context.HttpContext.Request.GetUri(), false);
            }

            context.ActionArguments["loggedInPerson"] = person;
        }