ASP.NET MVC & Web Services

前端 未结 7 1372
梦谈多话
梦谈多话 2020-12-02 09:30

Does adding a Web Service to my ASP.NET MVC project break the whole concept of MVC?

That Web Service (WCF) depends on the Model layer from my MVC project to communic

7条回答
  •  误落风尘
    2020-12-02 09:38

    I have added web services to my application and it works well. I don't believe it violates MVC because it is an alternative interface to your model. MVC is not appropriate for web services because web services don't have a view.

提交回复
热议问题