例外で他のビューにリダイレクトしたい。次のコード OnException があります。しかし、どうすればビューを変更できますか?
protected override void OnException(ExceptionContext filterContext)
{ // Let other exceptions just go unhandled
if (filterContext.Exception is InvalidOperationException)
{ // Switch to an error view ...
}
}
エラー表示に切り替えるには??