Orchard Themed Attribute outside controllers
问题 I have a service which will override the content of the response body. is it possible to use themed within the method which override the content ? [Themed] public void forbiddenAlert(IHttpContextAccessor Hca) { // overriding response body } 回答1: No, i don't think this will work as the Themed attribute is intended for decorating a controller only. Also i don't think you follow the right approach for denying access. The event handler should not override the response body (seperation of concerns