0

Let's say I have this action method in my ApplicationController

public ActionResult MyActionMethodName()
{
    ...
}

I want this (and all methods that doesn't have a specific route) method's route to be /application/my-action-method-name without manually specifying it. Some special route or package that can convert action methods names in PascalCase to dashed routes.

Is there something like that?

1
  • 1
    Looks like this question is exactly what you're looking for. Dashes and all. Commented Apr 3, 2014 at 15:22

1 Answer 1

2

I found this project which is a NuGet package that will convert all action method names to lowercased-dashed-routes.

Sign up to request clarification or add additional context in comments.

1 Comment

This should be the default route system in ASP.NET MVC, IMHO.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.