更新时间:2021-08-22 23:02:56
您需要使用 IActionResult ,而不是 IHttpActionResult .
IActionResult
IHttpActionResult
Core中不存在 IHttpActionResult 接口,它在较旧的Web API项目中使用.
The IHttpActionResult interface does not exist in Core, it's used in older Web API projects.
ASP.NET Core API 版本控制
【ASP.NET Web API教程】5.2 发送HTML表单数据:URL编码的表单数据
ASP.NET Core微服务之基于Ocelot实现API网关服务(2)
ASP.NET Web API路由系统:Web Host下的URL路由
ASP.NET Web API基本身份验证授权头
使用ASP.NET身份和ASP.NET Web API 2跨域令牌身份验证基础
Docker 为 ASP.NET Core Web 应用程序生成 Docker 映像,创建并运行多个容器
Asp.Net MVC 4 Web API 中的安全认证-使用OAuth
控制ASP.NET Web API 调用频率
【ASP.NET Web API教程】5.4 ASP.NET Web API批处理器