I'm building a quite simple ASP.NET MVC application. And there are some things that confuse me a little bit. Let me list what I've got:
- I've created an API area which provides Products, Categories lists as json; it contains two controllers ProductController and CategoryController.
- On the client side I'm using Backbone.js and Home->Index.cshtml view as main application page.
- Also I've created Admin area which also contains two controllers (ProductController and CategoryController).
I can't decide how do I implement Admin area. I've been thinking about implementing just one entry point where administrator accesses lists of products, categories, orders etc. and edits them.
But! url areas/admin/home/index looks wierd. home/index segment sounds meaningless.
Should I split Admin area by adding a controller per entity? Or is it better to have no areas at all and to have admin controller with authorization attribute applied?
Need an advice. How is that implemented in real world projects?