public IEnumerable <Filter> GetFilters(ControllerContext controllerContext,
                                               ActionDescriptor actionDescriptor)
        {
            var filters = _filterProviders.GetFilters(controllerContext, actionDescriptor);

            var projectId = _projectIdResolver.GetProjectId(controllerContext.HttpContext);

            if (projectId == null || projectId.Value == 0)
            {
                return(filters);
            }

            return(projectId > 0 ? filters.Where(x => x.Instance.GetType() != _authorizeContent) : filters);
        }
        public ContentReference GetProjectVersion(ContentReference publishedReference, HttpContextBase httpContext)
        {
            var projectId = _projectIdResolver.GetProjectId(httpContext);

            return(!projectId.HasValue ? publishedReference : GetProjectReference(publishedReference, projectId.Value));
        }