📅  最后修改于: 2022-03-11 14:49:22.810000             🧑  作者: Mango
public override void OnActionExecuting(ActionExecutingContext context)
{
context.Result = new UnauthorizedObjectResult("user is unauthorized");
}