Well I posted a question or two while I was going through MVC tutorials, but now I have my first real question on something I am doing at work.

I need to write code that will have JSON posted to it containing search criteria for me to look up records in a database (like firstname, lastname) and I am to return a JSON string of records that match. We are using datatables on the frontend, but that is probably not relevant to my question. I just need to post JSON back, and the designer will render it.

Any idea how to do this in MVC? This is my first MVC application so I am not sure where to start. We have an existing solution that other developers are working on, so I am a piece of the whole and the foundation already exists in Visual Studio.

Thanks for any help.