0

I am using dotnet Core 3.1 and saw in my Controllers that a page name can not contain special characters (which is fine if you start a project from scratch).

If you got tasked with taking over an existing website and have page names that contains hyphens i.e. top-ten-pupils-in-matric, how can one go about in achieving this in dotnet core 3.1?

Please see the example below in what I would like to achieve

public IActionResult top-ten-pupils-in-matric()
{
        return View();
}

Any help would be greatly appreciated.

Danie Du Preez
  • 93
  • 1
  • 2
  • 8

0 Answers0