阅读背景:

为什么我不能在我的MVC控制器上声明多个方法?

来源:互联网 

I am trying to create a web API using .Net Core MVC. If I only declare one method on the controller, I can call the API using HttpClient from another application. However, if I add a second public method to the controller, the HttpClient call always returns status code 500, no matter which method I call, and I cannot find any errors coming from the server. What am I missing that will allow me to declare multiple methods from the same controller?I am trying to create a web API using .Net Core




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: