When should I create new Controller class in Asp.net MVC (Design Question)?

后端 未结 2 1381
星月不相逢
星月不相逢 2021-01-14 18:18

Before I ask the question, here is my understanding about Controller in MVC pattern.

  1. Controller is Application Layer (in DDD)
  2. It controls Application
2条回答
  •  悲哀的现实
    2021-01-14 18:53

    After working on ASP.net MVC and rails, I think Controller should create per Resource (in the REST style application).

提交回复
热议问题