0

I have an Asp.net Mvc3 project and I have made a ApiController in it. Now I want to call the api in a windows application project. And I dont know how to config Global.asax or web.config file to approach this. And I dont know what would be the service reference url(If the ApiController name is Service and the method in it is UpdatePrice)?

Hamid Reza
  • 2,913
  • 9
  • 49
  • 76

1 Answers1

1

You have to make an HTTP request from the application to the WEBAPI action URL you want to access using HttpClient. WEBAPI is a REST based HTTP service, so you can access it only via HTTP unlike WCF on this context.

You can refer here for more information and code samples on this.

Aneesh Mohan
  • 1,077
  • 8
  • 17