DESIGNING RESTful API FOR SEARCH IN MVC 4.0

 

There are many use cases where your mobile application has to search for information based on some parameter(s). This blog shows how to design and implement a search API in ASP.NET MVC 4.0

Your controller code looks like this. Make sure you have the HttpGet attribute specified.

SNAGHTML51d8ea2[5]

 

You have to add a new route which will include the action name to make this work

 

SNAGHTML5225e02

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: