Placement of Business Logic in MVC

那年仲夏 提交于 2019-12-11 10:09:25

问题


I want to know where in my code I should place my business logic. Should it be in my model or should it be in the controller? I have always thought it should be in the controller but I have been told by a friend that I should put it in the model.

Any help would be appreciated.

Thanks,

Sachin

来源:https://stackoverflow.com/questions/9810028/placement-of-business-logic-in-mvc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!