下面的代码在.NET核心中有任何替代吗?
filterContext.Result = new RedirectToRouteResult(new System.Web.Routing.RouteValueDictionary
{
{"controller", "Login"},
{"action", "LogoutSession"}
});因为这段代码会导致ASP.NET Core中的一个错误
名称空间'System.Web‘中不存在类型或名称空间名称’路由‘(您是否缺少程序集引用?)

发布于 2022-02-14 11:29:00
RedirectToRouteResult现在住在Microsoft.AspNetCore.Mvc
https://stackoverflow.com/questions/71110999
复制相似问题