|
-
Apr 21st, 2012, 09:31 AM
#1
Thread Starter
Frenzied Member
MVC naming help - singular or plural?
I'm struggling a bit with how to properly name the controllers in MVC. Should they be singular or plural? For example, lets say I have the tables Customer and Product in my database. Should the controllers be CustomerController and ProductController, or CustomersController and ProductsController?
Put a different way, does it make more since for the URL to be:
somedomain.com/Product
somedomain.com/Product/Edit/1
or
somedomain.com/Products
somedomain.com/Products/Edit/1
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|