更新时间:2023-02-24 23:24:48
您可以通过指定一个ActionResult给filterContext.Result美元的操作方法的对$ pvent执行。例如:
You can prevent execution of the action method by assigning an ActionResult to filterContext.Result. For example:
filterContext.Result = new RedirectResult(urlToRedirectTo);