0
我试过实现Web API控制器为我现有的Web窗体项目,我用下面的代码路由我的API。如何路由Web API控制器现有的Web窗体项目
RouteTable.Routes.MapHttpRoute( name: "EnadocApi", routeTemplate: "apiv2/{controller}/{action}/{Id}", defaults: new { Id = RouteParameter.Optional } );
但它给了以下错误。
我使用VS2015。