Category Archives: ASP.Net Web API

Multiple actions were found that match the request Web API.

When we create a Web API, it creates a default route “api/{controller}/{id}” in WebApiConfig.cs file. Action name is not defined in the route. Web API by default serves to HTTP verbs Get, Post, Put, Delete with optional parameters. Web API identifies the action with http verbs. If we have more than one action method with Continue Reading…

Get address from latitude and longitude using google map api

We can find address components Country, State, Postal code etc. from latitude and longitude using google map api. For this google provide a service. We have to call this service using post method. Service return result in two formats xml or json based on the parameter passed as xml or json. Call the service by Continue Reading…

Security in ASP.NET Web API.

Security can be provide in ASP.Net Web API using Authentication and Authorization. Authentication means user identity to the system. user is able to login to a website. Example Google Account. Authentication is provided using HTTP Module and HTTP Message Handler. HTTP Module- You can configure your project to IIS to use built in authentication i.e; HTTP Continue Reading…

CRUD Operations using ASP.NET Web API.

This Tutorial will explain how to implement crud operations using ASP.NET Web API. Open Visual Studio 2012. Go to create new project tab. Select “Asp.Net MVC 4 Web Application.” Then select Web API from Project Template. using ASP.NET Web API Crud operation are performed by GET – To Get data from database POST – To Continue Reading…