The type or namespace IHttpActionResult not found

前端 未结 11 1995
小鲜肉
小鲜肉 2021-01-31 14:04

This is the first time I am creating a Web API application in ASP.NET MVC4. I opened a new Web API project and added a new controller named \'Product\'. The function given below

11条回答
  •  醉梦人生
    2021-01-31 14:31

    FYI I was getting the same issue when using .NET Core 3.1.

    The solution was to use IActionResult instead of IHttpActionResult.

提交回复
热议问题