MVC Validation - Keep it DRY with a service layer - What is best practice?

前端 未结 6 1032
栀梦
栀梦 2020-12-29 08:23

I am trying to adhere to best multi-layer design practices, and don\'t want my MVC controller to interact with my DAL (or any IRepository for that matter). It must go throug

6条回答
  •  抹茶落季
    2020-12-29 08:50

    Stephen advice is perfect in this scenario. Currently, I am working on a very large MVC 3.0 application with SOA and other things are involved. So in a response, you would like to fill all the necessary information and showing them to your views (of-course controller will dictate). Hope this helps.

提交回复
热议问题