How can I combine a MVC4 site and a WebAPI site under the same IIS website?

后端 未结 2 1345
盖世英雄少女心
盖世英雄少女心 2021-02-10 22:02

I have a project (named Product.Api) that has some controllers used for our WebAPI site. The controllers are in a namespace Product.Api.Controllers. Th

2条回答
  •  难免孤独
    2021-02-10 22:44

    Before the MapHttpRoute Factory call add System.Web.Mvc.ControllerBuilder.Current.DefaultNamespaces.Add("Namespace.Full.Controllers");

提交回复
热议问题