Replies: 3 comments
-
Are you talking about the route name constants? They start with the HTTP method as a convention. The template does not have any POST methods but if you need them, the idea is to start with PostXxxxxx. It's just a convention, nothing more. Route names have to be unique, just having the action name is not sufficient because you can have two methods with the same action name but different HTTP methods. I'm thinking about using slack... |
Beta Was this translation helpful? Give feedback.
-
Yep. Thanks. |
Beta Was this translation helpful? Give feedback.
-
I'd advise against using plain strings in your code to refer to actions/controllers/views etc. Try to use the new nameof() operator in C# 6.0 or constants where possible. The advantages are that when you rename something the rename flows through. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Not kinda issue. Just bit confused about
GetACTION_NAME
notation, IsGet
prefix related to http method allowed for particular action? How to handle post actions then? And why.P.S.: I could not find any slack/gitter IM rooms related to this project.
Beta Was this translation helpful? Give feedback.
All reactions