net webapi怎么做版本

2025-12-14 10:19:02
推荐回答(1个)
回答1:

你这种方式应该是没办法区分它们的。
这里有两种方法调用你的函数: (1)指定路由:GetCustom()方法写下代码[Route("api/customers/GetCustomer ")],然后你可以用get方法调用地址"api/customers/GetCustomer". (2).修改WebAipConfig类中Registe。