I have the following scenario, some models that will be accessed via administration (site) and via client (app), in administration it can read and write data and in the client only read data.
My question, what is the best way to follow the MVC pattern to optimize code (do not repeat)?
Since the administration and client will consume data, being the only difference that one will consume in html and the other json.
I thought of making a controller containing all the communication with the models and one more controller for each purpose (administration and model), they would access the main controller.
Is this my thinking correct?