Results 1 to 3 of 3

Thread: MVC naming help - singular or plural?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    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

    Visual Studio 2010

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: MVC naming help - singular or plural?

    Moved to the ASP.Net forum.

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: MVC naming help - singular or plural?

    Better be moved on MVC section and not asp.net
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width