0

I am trying to create an endpoint for something like this: https://www.example.com/hyphen-param?id=123

I've tried using MapHttpRoute MapPageRoute [Route("hyphen-param", HttpVerbs.Get)] [RoutePrefix("{hyphen-param}")]

I need the Class name to have a hyphen not just a route within the class.

Nothing has worked so far, any insight would be appreciated. Thanks!

Jacob Finamore
  • 797
  • 5
  • 19
  • Possible duplicate of [Asp.Net MVC: How do I enable dashes in my urls?](https://stackoverflow.com/questions/30310/asp-net-mvc-how-do-i-enable-dashes-in-my-urls) – Chris.ZA Oct 12 '18 at 18:09
  • @Chris.ZA this isn't a duplicate of that question because that stackoverflow doesn't answer how to make the class name hyphen. I want the url to look like https://www.example.com/hyphen-param?id=123 – Jacob Finamore Oct 12 '18 at 19:29

0 Answers0