Web API in MVC solution in separate project

后端 未结 8 1171
Happy的楠姐
Happy的楠姐 2020-12-02 04:35

I am creating a new MVC4 project, and research has lead me to believe that communicating from javascript to the server side is better achieved now through web API framework

相关标签:
8条回答
  • 2020-12-02 05:25

    Steven from SimpleInjector (IoC framework) advises two separate projects: What is the difference between DependencyResolver.SetResolver and HttpConfiguration.DependencyResolver in WebAPI

    0 讨论(0)
  • 2020-12-02 05:25

    I tried to split the API controllers into a new project. All I've done is to create a new library project, moved the controllers inside folder named API. Then added the reference of the library project to the MVC project.

    The webAPI configuration is left in the MVC project itself. It works fine.

    0 讨论(0)
提交回复
热议问题