What is the best place for business logic in ASP.NET MVC when using repositories?

后端 未结 5 1750
醉酒成梦
醉酒成梦 2021-02-02 16:25

When implementing Repository for database in ASP.NET MVC project, is it correct to place business logic into it or may be better to place logic in controller class? Or use addit

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-02 17:13

    Business logic should be there in your Domain model.

    Please look into this answer.

    ASP.NET MVC - Should business logic exist in controllers?

提交回复
热议问题