要求された URL:http://localhost/api/access/blob
ルート:
config.Routes.MapHttpRoute(
name: "AccessApi",
routeTemplate: "api/{controller}/{action}"
);
定義されたアクション:
public class AccessController : ApiController
{
// GET api/access/blob
[HttpGet]
public string Blob()
{
return "blob shared access signature";
}
// GET api/access/queue
[HttpGet]
public string Queue()
{
return "queue shared access signature";
}
}
結果:
Multiple actions were found that match the request:
System.String Blob() on type Project.Controllers.AccessController
System.String Queue() on type Project.Controllers.AccessController
適切なアクションが見つからないのはなぜですか?