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?
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.