Insights & Ideas

Explore Toshal Infotech's latest insights on AI, software development, web technology, testing, and digital trends.

Add Web API to an existing ASP.Net web application project

  • Add below listed references
    • System.Net.Http.dll
    • System.Web.Http.dll
    • System.Web.Http.WebHost.dll
  • Import namespace System.Web.Http and System.Web.Routing in Globals.asax.cs
  • Call RouteTable.Routes.MapHttpRoute
    RouteTable.Routes.MapHttpRoute("API Default", "api/{controller}/{action}", new[] { "App.Namespace" });
  • Add a controller code file deriving from System.Web.Http.ApiController

Words from our clients

 

Tell Us About Your Project

We’ve done lot’s of work, Let’s Check some from here