asp.net mvc - Naming for Conventions for Actions and Views (Revisited) -


I'm new to MVC and, as a learning exercise, I try to write an older application again I am an ASP.NET MVC application. I'm a bit unclear about some conventions which question only partially covers.

Let's say I have two controllers: Both the JobController and ClientController have the same actions: List, Details, New, Updates, and Delete.

Should the thoughts of these actions be named as the action? In this case, for the Job Controller, the list action should have a view called "List.aspx" which is opposite to something like "Joblist.aspx".

The question came to my mind that I was unsure about the many ideas appropriate to its name (such as "List.aspx"). This will be more relatable because I continue to add controllers because every business item in my system will require some sort of "List.aspx".

They will not actually have the same name if it was necessary to name each of our files separately , So why do we want folders? You actually have a job / List.aspx and a client / List.aspx.


Comments