public override void OnActionExecuting(ActionExecutingContext filterContext)
 {
     if (IsGroupPage(filterContext) is Guid groupId && IsGroupHidden(filterContext, groupId))
     {
         var deactivatedGroupLink = _groupLinkProvider.GetDeactivatedGroupLink(groupId);
         filterContext.HttpContext.Response.Redirect(deactivatedGroupLink);
     }
 }
 public override void OnActionExecuting(ActionExecutingContext filterContext) =>
 GetGroupPageId(filterContext)
 .Filter(groupId => IsGroupHidden(filterContext, groupId))
 .IfSome(groupId =>
 {
     var deactivatedGroupLink = _groupLinkProvider.GetDeactivatedGroupLink(groupId);
     filterContext.HttpContext.Response.Redirect(deactivatedGroupLink);
 });