public override void Handle(ActionExecutingContext context) { var activeRealm = realmService.GetActiveRealm(); var userId = userIdProvider.Get(context.HttpContext); if (realmService.GetRealmPlayer(userId, activeRealm.Id) == null) { context.Result = new RedirectToActionResult("Register", "Nation", null); } else { this.Next(context); } }