I have a question about MVC. Particularly about models. Suppose that I have a category table in my database. Now I would like to get results both for a single category for detailed view and multiple categories for a listing. Also I may need to query a number of categories for different purposes.
Now the question is; Does it make more sense to have two separate models. Like category model for operations on a single category and categories model operations on multiple categories.
My thinking is that when I am using category
model I don't need additional details for multiple categories. So separating these makes sense to me. But I am not sure.
Any ideas?