Skip to content

Instantly share code, notes, and snippets.

@etenzy
Last active May 17, 2021 18:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etenzy/01250423bd6ac827ed9dc109ec9a439e to your computer and use it in GitHub Desktop.
Save etenzy/01250423bd6ac827ed9dc109ec9a439e to your computer and use it in GitHub Desktop.
MVC View Model Naming Conventions
  • Model: Singular
  • View: Plural
  • Controller:
    • Plural: If your controller contains at least one action method that handles multiple entities at a single transaction. (resourceful)
    • Singular: example the AccountController is singular because it represents actions (action method) pertaining to a single account only.
  • Route: Plural
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment