Setting an alternate controller folder location in ASP.NET MVC

后端 未结 4 1448
悲&欢浪女
悲&欢浪女 2020-12-30 07:41

We can an MVC app that uses the default folder conventions for the HTML views, but we\'d like to set up alternate \"Services\" folder with controllers used only for web serv

4条回答
  •  伪装坚强ぢ
    2020-12-30 07:56

    You'll want to create your own controller factory implementing IControllerFactory.

    Check out http://nayyeri.net/custom-controller-factory-in-asp-net-mvc for an example.

提交回复
热议问题