The type or namespace IHttpActionResult not found

前端 未结 11 2010
小鲜肉
小鲜肉 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:30

    Check with this link to get the namespace for IHttpActionResult and all.

    This package contains everything you need to host ASP.NET Web API on IIS. ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.

    To install Microsoft ASP.NET Web API 2, run the following command in the Package Manager Console Or Manage NuGet Packages

    PM> Install-Package Microsoft.AspNet.WebApi -Version 5.0.0

提交回复
热议问题