0
ここで私はAsp.NetWebApiを使用しています。私はhttp://localhost:57997/api/Friends
のようなURLを渡すとそれがエラーを投げWebApi MultipulUrlはサポートされていません
public IEnumerable <Employee> GetEmployee()
{
var x = pro.GetEmployees();
return x;
}
public Employee GetEmployee(int id = 0) {
var x = pro.FindEmployee(id);
return x;
}
:ように私はいくつかのコードを書きました。このEmployee GetEmployee(int id = 0)
コードをコメントアウトしてもうまくいきます。
複数のアクションは、要求に一致することが判明した。型Application.Api.Controllers.FriendsControllerのタイプApplication.Api.Controllers.FriendsController GETEMPLOYEE上GETEMPLOYEEが