📜  ActionExecutingContext 结果响应返回 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:22.810000             🧑  作者: Mango

代码示例2
public override void OnActionExecuting(ActionExecutingContext context)
{
  context.Result = new UnauthorizedObjectResult("user is unauthorized");
}