我正在尝试设置filterContext.Result = new RedirectResult,使用T4MVC
我现在的呼吁是:
filterContext.Result = new RedirectResult("/account/login?ErrorCode=" + ServiceLocator.ExceptionHelper().NotLoggedInError.Code);我想换掉它。
可以用T4MVC?实现吗?
发布于 2013-12-18 00:37:20
不确定这是否是最好的方法,但这是可行的:
filterContext.Result = new RedirectResult(Url.Action(MVC.Account.Login(ServiceLocator.ExceptionHelper().NotLoggedInError.Code)));https://stackoverflow.com/questions/20646829
复制相似问题