Class AuditAdminActionAttribute
Marks a controller action as an audited admin operation.
When applied, records an
through the registered
after the action completes (success or failure).
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class AuditAdminActionAttribute : Attribute
Inheritance
Properties
ActionName
Optional logical action name. If not specified, the controller method name is used.
public string? ActionName { get; init; }
TargetParam
Optional name of the action parameter that identifies the target resource
public string? TargetParam { get; init; }