I prefer to do it within the model that keeps the controller cleaner. What do you prefer? And what is the general guideline for this?