Skip to content

Naming convention for input and output of Controllers #208

Answered by kgrzybek
mehdihadeli asked this question in Ideas
Discussion options

You must be logged in to vote

I always try to name an object which is deserialized from body request as **Request to distinguish it from the **Command.

If you like naming returned objects as **Response i think it is good too. Important thing is that it is a data structure from the conceptual perspective, this is main reason why I call it Dto

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mehdihadeli
Comment options

Answer selected by mehdihadeli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants