简体   繁体   中英

System.Web.Routing in ASP.NET Core MVC

Is there any replacement for the below code in .NET Core?

filterContext.Result = new RedirectToRouteResult(new System.Web.Routing.RouteValueDictionary
{
    {"controller", "Login"},
    {"action", "LogoutSession"}
});

Because this code causes an error in ASP.NET Core MVC

The type or namespace name 'Routing' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM