Hi Just a quick question about best practice in MVC development.
Let's say that I've got two controllers (cont1, cont2), each of which uses a separate model, model1 & model2.
all files are complex, models contain dozens of methods.
Say, I finished developing of the first controller and I'm in the middle of work on the second one. I need to create a method in model2 which will be exactly the same as one of methods in model1. It's only a tiny method, to get, for example, a list of categories of some sort.
What's the best approach of work - should I duplicate the method and include it in my model2, or should I retrieve it from model1?
The reasonable thing to do would be to get it from model1, but I don't know if that would affect the execution time, as it would have to load both models..
I would be grateful for some feedback
thanks k