I am converting below code from .NET framework 4.7.2 to .NET 5 but system.web.routing is not available anymore in .NET 5. Wondering is there any workaround for it?
RouteTable.Routes.Add(new Route
(
"sample",
new SampleHandler()
));