You need to sign in to do that
Don't have an account?
Stuart Werner
Using "model" classes for SOQL queries
We would like to use MVC design and would like to decouple our queries from our controller class. Can we create model classes to contain all of our queries and instatiate them in our cotroller classes. Our goal is to have a model class for each object and use them in multiple cotrollers. What is the best practive?
CaseUtils.cls
Then reuse this code in your controllers.